Skip to content

Commit 80f04b4

Browse files
authored
Prepare for rails 7.2/8 test suite (#1651)
1 parent e045980 commit 80f04b4

File tree

1 file changed

+6
-2
lines changed
  • test/dummy/config/environments

1 file changed

+6
-2
lines changed

test/dummy/config/environments/test.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
(config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }) :
2424
(config.static_cache_control = 'public, max-age=3600')
2525

26-
if Rails::VERSION::MAJOR > 6 && ENV['DEVISE_TOKEN_AUTH_ORM'] != 'mongoid'
26+
if Rails::VERSION::MAJOR < 7 && ENV['DEVISE_TOKEN_AUTH_ORM'] != 'mongoid'
2727
config.active_record.legacy_connection_handling = false
2828
end
2929

@@ -32,7 +32,11 @@
3232
config.action_controller.perform_caching = false
3333

3434
# Raise exceptions instead of rendering exception templates.
35-
config.action_dispatch.show_exceptions = false
35+
if Rails::VERSION::MAJOR >= 7 && Rails::VERSION::MINOR > 0
36+
config.action_dispatch.show_exceptions = :none
37+
else
38+
config.action_dispatch.show_exceptions = false
39+
end
3640

3741
# Disable request forgery protection in test environment.
3842
config.action_controller.allow_forgery_protection = false

0 commit comments

Comments
 (0)