diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-10-20 13:55:04 -0500 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-18 11:27:02 +0200 |
commit | d090a53fa658441d25fbd7d135cc033ac7acde40 (patch) | |
tree | 6f1ac6a61cc840c04fadf7bd87da5a82829eabbb | |
parent | db600de804aa415a7d4df198b37b3b9479ebb94f (diff) | |
download | bundler-d090a53fa658441d25fbd7d135cc033ac7acde40.tar.gz |
Add a spec for installing git deps after packaging w/o git
-rw-r--r-- | spec/cache/git_spec.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/cache/git_spec.rb b/spec/cache/git_spec.rb index 85d1d29043..588ff2e37b 100644 --- a/spec/cache/git_spec.rb +++ b/spec/cache/git_spec.rb @@ -220,5 +220,24 @@ end gemspec = bundled_app("vendor/cache/foo-1.0-#{ref}/foo.gemspec").read expect(gemspec).to_not match("`echo bob`") end + + unless cmd == "package" || Bundler.feature_flag.cache_command_is_package? + it "can install after #{cmd} with git not installed" do + build_git "foo" + + gemfile <<-G + gem "foo", :git => '#{lib_path("foo-1.0")}' + G + bundle! "config set cache_all true" + bundle! cmd, "all-platforms" => true, :install => false, :path => "./vendor/cache" + + simulate_new_machine + with_path_as "" do + bundle! "config set deployment true" + bundle! :install, :local => true + expect(the_bundle).to include_gem "foo 1.0" + end + end + end end end |