spec/other/exec_spec.rb in bundler-1.1.pre.4 vs spec/other/exec_spec.rb in bundler-1.1.pre.5

- old
+ new

@@ -52,11 +52,11 @@ G end bundle "exec rackup" - check out.should == "0.9.1" + out.should eq("0.9.1") Dir.chdir bundled_app2 do bundle "exec rackup" out.should == "1.0.0" end @@ -72,11 +72,11 @@ end G bundle "exec rackup" - check out.should == "0.9.1" + out.should eq("0.9.1") should_not_be_installed "rack_middleware 1.0" end it "should not duplicate already exec'ed RUBYOPT or PATH" do install_gemfile <<-G @@ -97,11 +97,11 @@ install_gemfile <<-G gem "rack" G bundle "exec foobarbaz", :exitstatus => true - check exitstatus.should == 127 + exitstatus.should eq(127) out.should include("bundler: command not found: foobarbaz") out.should include("Install missing gem binaries with `bundle install`") end it "errors nicely when the argument is not executable" do @@ -109,11 +109,11 @@ gem "rack" G bundle "exec touch foo" bundle "exec ./foo", :exitstatus => true - check exitstatus.should == 126 + exitstatus.should eq(126) out.should include("bundler: not executable: ./foo") end describe "with gem binaries" do describe "run from a random directory" do @@ -207,36 +207,7 @@ bundle "exec fizz_no_gemspec" out.should == "1.0" end end - end - - describe "bundling bundler" do - before(:each) do - gemfile <<-G - source "file://#{gem_repo1}" - gem "rack" - G - - bundle "install --path vendor/bundle --disable-shared-gems" - end - - it "does not explode with --disable-shared-gems" do - bundle "exec bundle check", :exitstatus => true - exitstatus.should == 0 - end - - it "does not explode when starting with Bundler.setup" do - ruby <<-R - require "rubygems" - require "bundler" - Bundler.setup - puts `bundle check` - puts $?.exitstatus - R - - out.should include("satisfied") - out.should include("\n0") - end end end