diff options
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 |