Latest cucumber, rails, exception rescue_from

Cucumber these days appears to disable the base controller from doing exception rescues, which makes plenty of sense as it means you get proper error traces instead of boilerplate uselessness.

But, when you’re testing that your error pages are rendered incorrectly, it’s a bit of a pain. In that case you want the line:

ActionController::Base.allow_rescue = true