summaryrefslogtreecommitdiff
path: root/spec/commands/exec_spec.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-08-10 14:08:32 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-08-16 16:44:37 -0500
commit4f6bdcd5fd2074ff97dba83bf0c7a6398c1a3530 (patch)
tree6193d1d810131e1a32c67d3f1b5abba9c39bd9b4 /spec/commands/exec_spec.rb
parent4fe91931d587075c2de507a1f87bcdab9b30373a (diff)
downloadbundler-4f6bdcd5fd2074ff97dba83bf0c7a6398c1a3530.tar.gz
Add a setting for disable_exec_load
Diffstat (limited to 'spec/commands/exec_spec.rb')
-rw-r--r--spec/commands/exec_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb
index 8163fc7725..dec1605c9e 100644
--- a/spec/commands/exec_spec.rb
+++ b/spec/commands/exec_spec.rb
@@ -553,6 +553,15 @@ describe "bundle exec" do
it_behaves_like "it runs"
end
+ context "when disable_exec_load is set" do
+ let(:exec) { "EXEC: exec" }
+ before do
+ bundle "config disable_exec_load true"
+ end
+
+ it_behaves_like "it runs"
+ end
+
context "signals being trapped by bundler" do
let(:executable) { strip_whitespace <<-RUBY }
#{shebang}