diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2018-08-19 23:36:25 -0700 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-03-10 17:47:39 +0100 |
commit | 24ede701b16b98b3a9e7e0fc4684668508732a3b (patch) | |
tree | 56de4d99804090e35c0064faedbe7ea5168ccca2 /spec/commands/exec_spec.rb | |
parent | cf245d61559b53f6c5f110778cdbe47a437b1142 (diff) | |
download | bundler-24ede701b16b98b3a9e7e0fc4684668508732a3b.tar.gz |
Add a spec for bundle exec bundle install stack overflowing
Diffstat (limited to 'spec/commands/exec_spec.rb')
-rw-r--r-- | spec/commands/exec_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb index 17fc959baf..1032f10d18 100644 --- a/spec/commands/exec_spec.rb +++ b/spec/commands/exec_spec.rb @@ -926,5 +926,25 @@ __FILE__: #{path.to_s.inspect} expect(err).to include("custom openssl should not be loaded") end end + + context "with a git gem that includes extensions" do + before do + system_gems :bundler, :keep_path => true + build_git "simple_git_binary", &:add_c_extension + bundle! "config set path .bundle" + install_gemfile! <<-G, :system_bundler => true + gem "simple_git_binary", :git => '#{lib_path("simple_git_binary-1.0")}' + G + end + + it "allows calling bundle install" do + bundle! "exec bundle install", :system_bundler => true + end + + it "allows calling bundle install after removing gem.build_complete" do + FileUtils.rm_rf Dir[bundled_app(".bundle/**/gem.build_complete")] + bundle! "exec #{Gem.ruby} -S bundle install", :system_bundler => true + end + end end end |