diff options
Diffstat (limited to 'spec/ruby/core/exception/success_spec.rb')
| -rw-r--r-- | spec/ruby/core/exception/success_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/exception/success_spec.rb b/spec/ruby/core/exception/success_spec.rb index 70af9c74eb..5ab8f94454 100644 --- a/spec/ruby/core/exception/success_spec.rb +++ b/spec/ruby/core/exception/success_spec.rb @@ -2,14 +2,14 @@ require_relative '../../spec_helper' describe "SystemExit#success?" do it "returns true if the process exited successfully" do - -> { exit 0 }.should raise_error(SystemExit) { |e| - e.success?.should == true + -> { exit 0 }.should.raise(SystemExit) { |e| + e.should.success? } end it "returns false if the process exited unsuccessfully" do - -> { exit(-1) }.should raise_error(SystemExit) { |e| - e.success?.should == false + -> { exit(-1) }.should.raise(SystemExit) { |e| + e.should_not.success? } end end |
