Sha256: 668934085206e9153c16c51bb0c46d6051025ffcaf9ef3a6cfc8df60cc79d55b
Contents?: true
Size: 444 Bytes
Versions: 83
Compression:
Stored size: 444 Bytes
Contents
describe :exception_new, :shared => true do it "creates a new instance of Exception" do Exception.should be_ancestor_of(Exception.send(@method).class) end it "sets the message of the Exception when passes a message" do Exception.send(@method, "I'm broken.").message.should == "I'm broken." end it "returns 'Exception' for message when no message given" do Exception.send(@method).message.should == "Exception" end end
Version data entries
83 entries across 83 versions & 1 rubygems