diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-07-24 15:38:34 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-07-24 15:41:48 -0500 |
commit | efab50776a8636a4dcc751a49d7b51c8d16f5951 (patch) | |
tree | 71d8034b6e4bcba9c94d9f7456e3f41d69322feb /spec/install/gemfile/sources_spec.rb | |
parent | a6a5d32f8e136117a1ca525e20957f68ff79d0e4 (diff) | |
download | bundler-efab50776a8636a4dcc751a49d7b51c8d16f5951.tar.gz |
Update a pair of specs to use the new source matching
Diffstat (limited to 'spec/install/gemfile/sources_spec.rb')
-rw-r--r-- | spec/install/gemfile/sources_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/install/gemfile/sources_spec.rb b/spec/install/gemfile/sources_spec.rb index 7b44f593..1ad9aac0 100644 --- a/spec/install/gemfile/sources_spec.rb +++ b/spec/install/gemfile/sources_spec.rb @@ -35,7 +35,7 @@ describe "bundle install with gems on multiple sources" do expect(out).to have_major_deprecation a_string_including("Your Gemfile contains multiple primary sources.") expect(out).to include("Warning: the gem 'rack' was found in multiple sources.") expect(out).to include("Installed from: file:#{gem_repo1}") - should_be_installed("rack-obama 1.0.0", "rack 1.0.0") + should_be_installed("rack-obama 1.0.0", "rack 1.0.0", :source => "remote1") end it "errors when disable_multisource is set" do @@ -65,7 +65,7 @@ describe "bundle install with gems on multiple sources" do expect(out).to have_major_deprecation a_string_including("Your Gemfile contains multiple primary sources.") expect(out).to include("Warning: the gem 'rack' was found in multiple sources.") expect(out).to include("Installed from: file:#{gem_repo1}") - should_be_installed("rack-obama 1.0.0", "rack 1.0.0") + should_be_installed("rack-obama 1.0.0", "rack 1.0.0", :source => "remote1") end end end @@ -94,7 +94,8 @@ describe "bundle install with gems on multiple sources" do it "installs the gems without any warning" do bundle :install expect(out).not_to include("Warning") - should_be_installed("rack-obama 1.0.0", "rack 1.0.0") + should_be_installed("rack-obama 1.0.0") + should_be_installed("rack 1.0.0", :source => "remote1") end it "can cache and deploy" do |