blob: 8ace00fe100a0c4fd4a36b093049975f71b3e9cf (
plain)
1
2
3
4
5
6
7
8
9
|
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
|