spec/other/exec_spec.rb in bundler-1.1.rc vs spec/other/exec_spec.rb in bundler-1.1.rc.2

- old
+ new

@@ -119,9 +119,19 @@ bundle "exec ./foo", :exitstatus => true exitstatus.should eq(126) out.should include("bundler: not executable: ./foo") end + it "errors nicely when no arguments are passed" do + install_gemfile <<-G + gem "rack" + G + + bundle "exec", :exitstatus => true + # exitstatus.should eq(128) + out.should include("bundle exec needs a command to run") + end + describe "with gem executables" do describe "run from a random directory" do before(:each) do install_gemfile <<-G gem "rack"