summaryrefslogtreecommitdiff
path: root/spec
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 /spec
parent0f97614799350b380380792494c59b898ea059a9 (diff)
downloadbundler-558f4603300df7f23006f000d5b3749fa0029039.tar.gz
Test for "bundle exec ruby".
Does not pass if #2118 is applied. closes #2118
Diffstat (limited to 'spec')
-rw-r--r--spec/other/exec_spec.rb6
1 files changed, 6 insertions, 0 deletions
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"