Displaying 1 result from an estimated 1 matches for "raiseactionexceptions".
2010 Aug 09
0
Exceptions in functional tests (rescue_action_in_public! broken?)
...e by
default propagated to the test, but by using rescue_action_in_public! a test
could trigger the production, public behavior and then use assert_response
or similar to test the expected result. This was implemented via
coordination between ActionController::Rescue and
ActionController::TestCase::RaiseActionExceptions.
This coordination is no longer present in
3.0.0.rc1; rescue_action_in_public! has no effect on whether or
not exceptions propagate to the test (they always do).
The mis-coordination has two aspects:
a) config.action_dispatch.show_exceptions now defaults to false, meaning the
ShowExceptions midd...