instance method
fail_on
Ruby on Rails edge
Since v4.0.13 Private — implementation detail, not part of the public APISignature
fail_on(exception_class, message)
No documentation comment.
Parameters
-
exception_classreq -
messagereq
Source
# File actionpack/lib/action_dispatch/testing/assertions/routing.rb, line 345
def fail_on(exception_class, message)
yield
rescue exception_class => e
flunk(message || e.message)
end
Defined in actionpack/lib/action_dispatch/testing/assertions/routing.rb line 345
· View on GitHub
· Improve this page
· Find usages on GitHub