summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/install/gemfile/sources_spec.rb7
-rw-r--r--spec/install/git_spec.rb2
2 files changed, 5 insertions, 4 deletions
diff --git a/spec/install/gemfile/sources_spec.rb b/spec/install/gemfile/sources_spec.rb
index 7b44f5932a..1ad9aac029 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
diff --git a/spec/install/git_spec.rb b/spec/install/git_spec.rb
index 401da1b1d3..518e129169 100644
--- a/spec/install/git_spec.rb
+++ b/spec/install/git_spec.rb
@@ -12,7 +12,7 @@ describe "bundle install" do
bundle :install
expect(out).to include("Using foo 1.0 from #{lib_path("foo")} (at master@#{revision_for(lib_path("foo"))[0..6]})")
- should_be_installed "foo 1.0"
+ should_be_installed "foo 1.0", :source => "git@#{lib_path("foo")}"
end
it "should check out git repos that are missing but not being installed" do