diff options
Diffstat (limited to 'spec/other/exec_spec.rb')
-rw-r--r-- | spec/other/exec_spec.rb | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/spec/other/exec_spec.rb b/spec/other/exec_spec.rb index 30a96a8315..34f8478bfb 100644 --- a/spec/other/exec_spec.rb +++ b/spec/other/exec_spec.rb @@ -11,7 +11,7 @@ describe "bundle exec" do G bundle "exec rackup" - out.should == "0.9.1" + expect(out).to eq("0.9.1") end it "works when the bins are in ~/.bundle" do @@ -20,7 +20,7 @@ describe "bundle exec" do G bundle "exec rackup" - out.should == "1.0.0" + expect(out).to eq("1.0.0") end it "works when running from a random directory" do @@ -30,13 +30,13 @@ describe "bundle exec" do bundle "exec 'cd #{tmp('gems')} && rackup'" - out.should == "1.0.0" + expect(out).to eq("1.0.0") end it "works when exec'ing something else" do install_gemfile 'gem "rack"' bundle "exec echo exec" - out.should == "exec" + expect(out).to eq("exec") end it "handles different versions in different bundles" do @@ -60,11 +60,11 @@ describe "bundle exec" do bundle "exec rackup" - out.should eq("0.9.1") + expect(out).to eq("0.9.1") Dir.chdir bundled_app2 do bundle "exec rackup" - out.should == "1.0.0" + expect(out).to eq("1.0.0") end end @@ -80,7 +80,7 @@ describe "bundle exec" do bundle "exec rackup" - out.should eq("0.9.1") + expect(out).to eq("0.9.1") should_not_be_installed "rack_middleware 1.0" end @@ -93,10 +93,10 @@ describe "bundle exec" do rubyopt = "-I#{bundler_path} -rbundler/setup #{rubyopt}" bundle "exec 'echo $RUBYOPT'" - out.should have_rubyopts(rubyopt) + expect(out).to have_rubyopts(rubyopt) bundle "exec 'echo $RUBYOPT'", :env => {"RUBYOPT" => rubyopt} - out.should have_rubyopts(rubyopt) + expect(out).to have_rubyopts(rubyopt) end it "errors nicely when the argument doesn't exist" do @@ -105,9 +105,9 @@ describe "bundle exec" do G bundle "exec foobarbaz", :exitstatus => true - exitstatus.should eq(127) - out.should include("bundler: command not found: foobarbaz") - out.should include("Install missing gem executables with `bundle install`") + expect(exitstatus).to eq(127) + expect(out).to include("bundler: command not found: foobarbaz") + expect(out).to include("Install missing gem executables with `bundle install`") end it "errors nicely when the argument is not executable" do @@ -117,8 +117,8 @@ describe "bundle exec" do bundle "exec touch foo" bundle "exec ./foo", :exitstatus => true - exitstatus.should eq(126) - out.should include("bundler: not executable: ./foo") + expect(exitstatus).to eq(126) + expect(out).to include("bundler: not executable: ./foo") end it "errors nicely when no arguments are passed" do @@ -128,7 +128,7 @@ describe "bundle exec" do bundle "exec", :exitstatus => true # exitstatus.should eq(128) - out.should include("bundler: exec needs a command to run") + expect(out).to include("bundler: exec needs a command to run") end describe "with gem executables" do @@ -141,14 +141,14 @@ describe "bundle exec" do it "works when unlocked" do bundle "exec 'cd #{tmp('gems')} && rackup'" - out.should == "1.0.0" + expect(out).to eq("1.0.0") end it "works when locked" do bundle "lock" should_be_locked bundle "exec 'cd #{tmp('gems')} && rackup'" - out.should == "1.0.0" + expect(out).to eq("1.0.0") end end @@ -165,7 +165,7 @@ describe "bundle exec" do it "works when unlocked" do bundle "exec fizz" - out.should == "1.0" + expect(out).to eq("1.0") end it "works when locked" do @@ -173,7 +173,7 @@ describe "bundle exec" do should_be_locked bundle "exec fizz" - out.should == "1.0" + expect(out).to eq("1.0") end end @@ -190,14 +190,14 @@ describe "bundle exec" do it "works when unlocked" do bundle "exec fizz_git" - out.should == "1.0" + expect(out).to eq("1.0") end it "works when locked" do bundle "lock" should_be_locked bundle "exec fizz_git" - out.should == "1.0" + expect(out).to eq("1.0") end end @@ -214,14 +214,14 @@ describe "bundle exec" do it "works when unlocked" do bundle "exec fizz_no_gemspec" - out.should == "1.0" + expect(out).to eq("1.0") end it "works when locked" do bundle "lock" should_be_locked bundle "exec fizz_no_gemspec" - out.should == "1.0" + expect(out).to eq("1.0") end end |