diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-07-26 13:53:08 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-07-27 10:55:01 -0500 |
commit | fd9f977571b3bb2d5e8086224e7a024876a9e548 (patch) | |
tree | e3f21f8c0653beee01db00a88f77942555338d31 /spec/install/gemfile | |
parent | 92f7781eda8e429a189c1d2ebc642ec4f8febdbf (diff) | |
download | bundler-fd9f977571b3bb2d5e8086224e7a024876a9e548.tar.gz |
[Env] Print all gemfiles that have been evaledseg-env-eval-gemfile
Diffstat (limited to 'spec/install/gemfile')
-rw-r--r-- | spec/install/gemfile/eval_gemfile_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/install/gemfile/eval_gemfile_spec.rb b/spec/install/gemfile/eval_gemfile_spec.rb index 380cfd8593..035d3692aa 100644 --- a/spec/install/gemfile/eval_gemfile_spec.rb +++ b/spec/install/gemfile/eval_gemfile_spec.rb @@ -65,4 +65,18 @@ RSpec.describe "bundle install with gemfile that uses eval_gemfile" do expect(the_bundle).to include_gem "gunks 0.0.1", :source => "path@#{bundled_app("gems", "gunks")}" end end + + context "eval-ed Gemfile references other gemfiles" do + it "works with relative paths" do + create_file "other/Gemfile-other", "gem 'rack'" + create_file "other/Gemfile", "eval_gemfile 'Gemfile-other'" + create_file "Gemfile-alt", <<-G + source "file:#{gem_repo1}" + eval_gemfile "other/Gemfile" + G + install_gemfile! "eval_gemfile File.expand_path('Gemfile-alt')" + + expect(the_bundle).to include_gem "rack 1.0.0" + end + end end |