diff options
author | Homu <homu@barosl.com> | 2016-09-02 04:47:26 +0900 |
---|---|---|
committer | Homu <homu@barosl.com> | 2016-09-02 04:47:26 +0900 |
commit | 1e37ee4d7197412c6267641ed70455d6950a9ce0 (patch) | |
tree | d3c0e9f0448e88a7713b5be8a714f9e944b3dd33 | |
parent | b2fc16380c58e78d897012befd8f978b68bdab95 (diff) | |
parent | 1ab3be45751038ce6c2101fd8a8cd6e5f7b34958 (diff) | |
download | bundler-1e37ee4d7197412c6267641ed70455d6950a9ce0.tar.gz |
Auto merge of #4939 - JuanitoFatas:patch/mirror-equal, r=segiddins
Add a spec for Bundler::Settings::Mirror#==
This PR adds a spec for `Mirror#==` method.
-rw-r--r-- | spec/bundler/mirror_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/bundler/mirror_spec.rb b/spec/bundler/mirror_spec.rb index eb0ccf0bdf..6a81ef2af4 100644 --- a/spec/bundler/mirror_spec.rb +++ b/spec/bundler/mirror_spec.rb @@ -131,6 +131,16 @@ describe Bundler::Settings::Mirror do end end end + + describe "#==" do + it "returns true if uri and fallback timeout are the same" do + uri = "https://ruby.taobao.org" + mirror = Bundler::Settings::Mirror.new(uri, 1) + another_mirror = Bundler::Settings::Mirror.new(uri, 1) + + expect(mirror == another_mirror).to be true + end + end end end |