lib/spy/subroutine.rb in spy-0.4.3 vs lib/spy/subroutine.rb in spy-0.4.5
- old
+ new
@@ -165,9 +165,10 @@
if exception.respond_to?(:exception)
exception = message ? exception.exception(message) : exception.exception
end
@plan = Proc.new { raise exception }
+ self
end
# @overload and_throw(symbol)
# @overload and_throw(symbol, object)
#