lib/muack/failure.rb in muack-1.1.1 vs lib/muack/failure.rb in muack-1.1.2
- old
+ new
@@ -1,7 +1,7 @@
module Muack
- class Failure < Exception
+ class Failure < StandardError
attr_reader :expected
def build_expected obj, expected_defis
@expected = expected_defis.uniq{ |d| [d.msg, d.args] }.map{ |defi|
"#{obj.inspect}.#{defi.msg}(" \
"#{defi.args.map(&:inspect).join(', ')})"