Sha256: f1b2108a3bd2cc7dfcb7bc27634a6f35efe79ba47b6b7aeb93a3116e3bfab38d
Contents?: true
Size: 364 Bytes
Versions: 16
Compression:
Stored size: 364 Bytes
Contents
describe "Kernel#raise" do # ruby-specs test most of this, but ruby-specs won't differentiate between nil and undefined it "raises messages without exceptions" do lambda { raise Exception }.should raise_error(Exception) ex = nil begin raise Exception rescue Exception => e ex = e end ex.to_s.should == 'Exception' end end
Version data entries
16 entries across 16 versions & 1 rubygems