lib/assay/assertions/raise_failure.rb in assay-0.2.0 vs lib/assay/assertions/raise_failure.rb in assay-0.3.0

- old
+ new

@@ -72,10 +72,11 @@ end end # TODO: how to add `but got class` instead. def to_s + return @mesg if @mesg return super unless @arguments.size == 1 exp = @arguments[0].inspect #err = @_arguments[1].inspect @@ -88,10 +89,10 @@ end module Assertives - # Passes if the block raises a given exceptions. + # Passes if the block raises a given exception. # # assert_raises RuntimeError do # raise 'Boom!!!' # end #