summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Moore <tmoore@incrementalism.net>2015-02-22 15:39:27 +1100
committerTim Moore <tmoore@incrementalism.net>2015-02-22 15:39:27 +1100
commit90fc4ca5de032adf4de849034d44be0418addb34 (patch)
treea855dab404069c0d9acc65a5712feb62ce420657
parent5b30fed7673ea5a7709e418484e78aafa4f5a9b6 (diff)
downloadbundler-90fc4ca5de032adf4de849034d44be0418addb34.tar.gz
Failing spec for #3414 & #3417.
-rw-r--r--spec/install/gems/sources_spec.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/install/gems/sources_spec.rb b/spec/install/gems/sources_spec.rb
index 45a742a87f..cca00a914d 100644
--- a/spec/install/gems/sources_spec.rb
+++ b/spec/install/gems/sources_spec.rb
@@ -281,6 +281,26 @@ describe "bundle install with gems on multiple sources" do
should_be_installed("rack 0.9.1")
end
end
+
+ context "with a path gem in the same Gemfile" do
+ before do
+ build_lib "foo"
+
+ gemfile <<-G
+ gem "rack", :source => "file://#{gem_repo1}"
+ gem "foo", :path => "#{lib_path('foo-1.0')}"
+ G
+ end
+
+ it "does not unlock the non-path gem after install" do
+ bundle :install
+
+ bundle %{exec ruby -e 'puts "OK"'}
+
+ expect(out).to include("OK")
+ expect(exitstatus).to eq(0) if exitstatus
+ end
+ end
end
context "when an older version of the same gem also ships with Ruby" do