[Rebased] Disable display of detailed exceptions #387
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This is the same as #296 (PR), but has been rebased onto the latest changes to master. The following summary is copied from the other PR.
@allow-rescue
permits rescuing exceptions by settingaction_dispatch.show_exceptions
to true in the env hash. However, this will render the detailed error page and not the public error page you'd encounter in production.Given that the feature enables testing of error pages, and seems to be intended to mirror production behaviour as per the comment on https://github.com/cucumber/cucumber-rails/blob/master/lib/generators/cucumber/install/templates/support/_rails_each_run.rb.erb#L6-L14, this PR sets
action_dispatch.show_detailed_exceptions
to false, thus enabling the public error page to be rendered.How Has This Been Tested?
The
allow_rescue
feature has been extended to verify the content of the error page.Types of changes
Checklist:
This change is