diff options
author | Samuel Giddins <[email protected]> | 2017-10-20 13:55:04 -0500 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2019-09-18 18:26:32 +0900 |
commit | 4f2f6aeb5fa65a10c633d92fcdd1980d42a6d745 (patch) | |
tree | 081b76ac09a2d9e46286da5cbddd5682e39472f9 /spec/bundler/cache/git_spec.rb | |
parent | 0c6529bac2c38c536567e443b7da851144e84be8 (diff) |
[bundler/bundler] Add a spec for installing git deps after packaging w/o git
https://github.com/bundler/bundler/commit/65351c58b8
Diffstat (limited to 'spec/bundler/cache/git_spec.rb')
-rw-r--r-- | spec/bundler/cache/git_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/bundler/cache/git_spec.rb b/spec/bundler/cache/git_spec.rb index 85d1d29043..1cb278e912 100644 --- a/spec/bundler/cache/git_spec.rb +++ b/spec/bundler/cache/git_spec.rb @@ -220,5 +220,22 @@ end gemspec = bundled_app("vendor/cache/foo-1.0-#{ref}/foo.gemspec").read expect(gemspec).to_not match("`echo bob`") end + + 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 |