instance method
fail_on
Ruby on Rails 8.1.2
Since v4.0.13 PrivateSignature
fail_on(exception_class, message)
No documentation comment.
Parameters
-
exception_classreq -
messagereq
Source
# File actionpack/lib/action_dispatch/testing/assertions/routing.rb, line 348
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 348
· View on GitHub
· Improve this page
· Find usages on GitHub