mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
9 lines
204 B
Ruby
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
|