Sha256: b6b70271ff4e1178cbf94872718a89045092e3ac1a838e30d728c65c3df77193
Contents?: true
Size: 519 Bytes
Versions: 83
Compression:
Stored size: 519 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' describe "SystemExit#initialize" do it "accepts a status" do s = SystemExit.new 1 s.status.should == 1 s.message.should == 'SystemExit' end it "accepts a message" do s = SystemExit.new 'message' s.status.should == 0 s.message.should == 'message' end it "accepts a status and message" do s = SystemExit.new 10, 'message' s.status.should == 10 s.message.should == 'message' end end
Version data entries
83 entries across 83 versions & 1 rubygems