1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] Add a spec for installing git deps after packaging w/o git

65351c58b8
This commit is contained in:
Samuel Giddins 2017-10-20 13:55:04 -05:00 committed by Hiroshi SHIBATA
parent 0c6529bac2
commit 4f2f6aeb5f
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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