1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core/exception/status_spec.rb
2019-12-27 16:46:08 +01:00

9 lines
204 B
Ruby

require_relative '../../spec_helper'
describe "SystemExit#status" do
it "returns the exit status" do
-> { exit 42 }.should raise_error(SystemExit) { |e|
e.status.should == 42
}
end
end