Skip to content

Commit

Permalink
Remove default rails error pages (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
timpeat authored Jul 5, 2023
1 parent a84ef7c commit cddff90
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 202 deletions.
2 changes: 1 addition & 1 deletion config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
config.cache_store = :null_store

# Raise exceptions instead of rendering exception templates.
config.action_dispatch.show_exceptions = false
config.action_dispatch.show_exceptions = true

# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false
Expand Down
67 changes: 0 additions & 67 deletions public/404.html

This file was deleted.

67 changes: 0 additions & 67 deletions public/422.html

This file was deleted.

66 changes: 0 additions & 66 deletions public/500.html

This file was deleted.

4 changes: 3 additions & 1 deletion spec/requests/api/events_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ def standard_sns_message
end

it 'throws exception' do
expect { do_request }.to raise_error Aws::SNS::MessageVerifier::VerificationError
do_request

expect(response).to have_http_status :internal_server_error
end
end

Expand Down

0 comments on commit cddff90

Please sign in to comment.