summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2013-08-04 16:52:28 -0700
committerAndre Arko <andre@arko.net>2013-08-04 16:53:36 -0700
commit558f4603300df7f23006f000d5b3749fa0029039 (patch)
tree469a05dd1cf261b2ec938a215aa3d3d3b128cd94
parent0f97614799350b380380792494c59b898ea059a9 (diff)
downloadbundler-558f4603300df7f23006f000d5b3749fa0029039.tar.gz
Test for "bundle exec ruby".
Does not pass if #2118 is applied. closes #2118
-rwxr-xr-xbin/bundle2
-rw-r--r--spec/other/exec_spec.rb6
2 files changed, 8 insertions, 0 deletions
diff --git a/bin/bundle b/bin/bundle
index a6088f83b7..ffa0d75f65 100755
--- a/bin/bundle
+++ b/bin/bundle
@@ -1,4 +1,6 @@
#!/usr/bin/env ruby
+
+# Exit cleanly from an early interrupt
Signal.trap("INT") { exit 1 }
require 'bundler'
diff --git a/spec/other/exec_spec.rb b/spec/other/exec_spec.rb
index 4ed9f2f6aa..ed03e2b0a9 100644
--- a/spec/other/exec_spec.rb
+++ b/spec/other/exec_spec.rb
@@ -39,6 +39,12 @@ describe "bundle exec" do
expect(out).to eq("exec")
end
+ it "works when exec'ing to ruby" do
+ install_gemfile 'gem "rack"'
+ bundle "exec ruby -e 'puts %{hi}'"
+ expect(out).to eq("hi")
+ end
+
it "accepts --verbose" do
install_gemfile 'gem "rack"'
bundle "exec --verbose echo foobar"