Skip to content

Commit

Permalink
Merge pull request #1742 from stanhu/sh-fix-broken-main
Browse files Browse the repository at this point in the history
Fix broken tests for older Rails versions
  • Loading branch information
nbulaj authored Oct 25, 2024
2 parents a02cd99 + 40b9cb0 commit c113fa3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/dummy/config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
config.action_controller.perform_caching = false

# Raise exceptions instead of rendering exception templates
config.action_dispatch.show_exceptions = :none
# Rails 7.1 deprecated false in favor of :none, but we need to use false for
# backwards compatibility: https://github.com/rails/rails/pull/45867
config.action_dispatch.show_exceptions =
Gem::Version.new(Rails.version) >= Gem::Version.new('7.1.0') ? :none : false

# Disable request forgery protection in test environment
config.action_controller.allow_forgery_protection = false
Expand Down

0 comments on commit c113fa3

Please sign in to comment.