Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Test for "bundle exec ruby".
Browse files Browse the repository at this point in the history
Does not pass if #2118 is applied.

closes #2118
  • Loading branch information
indirect committed Aug 4, 2013
1 parent 0f97614 commit 558f460
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/bundle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env ruby

# Exit cleanly from an early interrupt
Signal.trap("INT") { exit 1 }

require 'bundler'
Expand Down
6 changes: 6 additions & 0 deletions spec/other/exec_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@
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"
Expand Down

0 comments on commit 558f460

Please sign in to comment.