Sha256: 02079513c931f4c6d5ed45397e04bdda033ad18ce42e3982cfe6eda04978b7f5
Contents?: true
Size: 425 Bytes
Versions: 52
Compression:
Stored size: 425 Bytes
Contents
require File.expand_path('../../fixtures/common', __FILE__) describe :to_s, :shared => true do it "returns the self's name if no message is set" do Exception.new.send(@method).should == 'Exception' ExceptionSpecs::Exceptional.new.send(@method).should == 'ExceptionSpecs::Exceptional' end it "returns self's message if set" do ExceptionSpecs::Exceptional.new('!!').send(@method).should == '!!' end end
Version data entries
52 entries across 52 versions & 2 rubygems