lib/fix/context.rb in fix-1.0.0.beta2 vs lib/fix/context.rb in fix-1.0.0.beta3
- old
+ new
@@ -104,10 +104,10 @@
puts result.colored_string
rescue ::Spectus::Result::Fail => result
abort result.colored_string
ensure
@after_hooks.each { |hook| i.instance_eval(&hook) }
- raise ExpectationResultNotFoundError unless result.is_a?(::Spectus::Result::Common)
+ raise ExpectationResultNotFoundError, result.class.inspect unless result.is_a?(::Spectus::Result::Common)
end
def on(name, *args, **options, &block)
if callable.raised?
actual = callable