aboutsummaryrefslogtreecommitdiffstats
path: root/spec/install/gemfile/eval_gemfile_spec.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-09-13 14:01:29 +0200
committerSamuel Giddins <segiddins@segiddins.me>2016-09-13 14:01:29 +0200
commitd453033b19c27640f95cc085d52398342e15472b (patch)
tree37889b28613d27cee11f384fc225eab1c7df823c /spec/install/gemfile/eval_gemfile_spec.rb
parent695db9a169294ec0c6fef3c14ef0f0ac1f6cc65c (diff)
downloadbundler-d453033b19c27640f95cc085d52398342e15472b.tar.gz
[Path] Store lockfile paths relative to the root, not the gemfile path
Diffstat (limited to 'spec/install/gemfile/eval_gemfile_spec.rb')
-rw-r--r--spec/install/gemfile/eval_gemfile_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/install/gemfile/eval_gemfile_spec.rb b/spec/install/gemfile/eval_gemfile_spec.rb
index 2660ac98..29f27550 100644
--- a/spec/install/gemfile/eval_gemfile_spec.rb
+++ b/spec/install/gemfile/eval_gemfile_spec.rb
@@ -26,6 +26,24 @@ describe "bundle install with gemfile that uses eval_gemfile" do
end
end
+ context "eval-ed Gemfile has relative-path gems" do
+ before do
+ build_lib("a", :path => "gems/a")
+ create_file "nested/Gemfile-nested", <<-G
+ gem "a", :path => "../gems/a"
+ G
+
+ gemfile <<-G
+ eval_gemfile "nested/Gemfile-nested"
+ G
+ end
+
+ it "installs the path gem" do
+ bundle! :install
+ expect(the_bundle).to include_gem("a 1.0")
+ end
+ end
+
context "Gemfile uses gemspec paths after eval-ing a Gemfile" do
before { create_file "other/Gemfile-other" }