Skip to content

Commit

Permalink
Fix flaky 404 error spec
Browse files Browse the repository at this point in the history
  • Loading branch information
camillevilla committed Dec 26, 2023
1 parent 57c6e6c commit d610847
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/features/errors/page_not_found_404_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
before do
Rails.application.config.consider_all_requests_local = false
Rails.application.config.action_dispatch.show_exceptions = true
Rails.application.config.action_dispatch.show_detailed_exceptions = false
end

after do
Rails.application.config.consider_all_requests_local = true
Rails.application.config.action_dispatch.show_exceptions = false
Rails.application.config.action_dispatch.show_detailed_exceptions = true
end

it 'should respond with the custom 404 page if the user visits a non-existent page' do
Expand Down

0 comments on commit d610847

Please sign in to comment.