diff options
author | Andre Arko <andre@arko.net> | 2013-08-04 16:52:28 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2013-08-04 16:53:36 -0700 |
commit | 558f4603300df7f23006f000d5b3749fa0029039 (patch) | |
tree | 469a05dd1cf261b2ec938a215aa3d3d3b128cd94 | |
parent | 0f97614799350b380380792494c59b898ea059a9 (diff) | |
download | bundler-558f4603300df7f23006f000d5b3749fa0029039.tar.gz |
Test for "bundle exec ruby".
Does not pass if #2118 is applied.
closes #2118
-rwxr-xr-x | bin/bundle | 2 | ||||
-rw-r--r-- | spec/other/exec_spec.rb | 6 |
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" |