diff options
Diffstat (limited to 'spec/bundler/cli_spec.rb')
-rw-r--r-- | spec/bundler/cli_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/bundler/cli_spec.rb b/spec/bundler/cli_spec.rb index 2f486729ca..2e36741074 100644 --- a/spec/bundler/cli_spec.rb +++ b/spec/bundler/cli_spec.rb @@ -41,6 +41,11 @@ describe "Bundler::CLI" do out.should include(tmp_file("vendor", "gems", "gems", "rack-0.9.1").to_s) end + it "creates valid executables" do + out = `#{tmp_file("bin", "rake")} -e 'require "extlib" ; puts Extlib'`.strip + out.should == "Extlib" + end + it "maintains the correct environment when shelling out" do out = run_in_context "exec %{#{Gem.ruby} -e 'require %{very-simple} ; puts VerySimpleForTests'}" out.should == "VerySimpleForTests" |