Skip to content

Commit

Permalink
Migrate 500 error to a request spec too
Browse files Browse the repository at this point in the history
  • Loading branch information
camillevilla committed Feb 6, 2024
1 parent ecd847e commit c85a12c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 22 deletions.
22 changes: 0 additions & 22 deletions spec/features/errors/internal_server_error_500_spec.rb

This file was deleted.

7 changes: 7 additions & 0 deletions spec/requests/errors_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,11 @@
expect(response.body).to include('Page not found')
expect(response.body).to include("We're sorry, we can't find the page you're looking for")
end

it '500 error' do
get '/500'
expect(response).to have_http_status(:error)
expect(response.body).to include('Internal server error')
expect(response.body).to include("We're sorry, something went wrong. We're working to fix it as soon as we can.")
end
end

0 comments on commit c85a12c

Please sign in to comment.