Skip to content

Commit

Permalink
Use rails version defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed Jun 7, 2024
1 parent af80b5b commit 0bd3c03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/mounted_app/test/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

module TestDummyApp
class Application < Rails::Application
config.secret_key_base = 'abcdef'
config.load_defaults Rails::VERSION::STRING.to_f
config.secret_key_base = SecureRandom.hex
config.eager_load = true
end
end
7 changes: 6 additions & 1 deletion test/test_app/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ class Rails::Console; end

module TestApp
class Application < ::Rails::Application
config.secret_key_base = 'abcdef'
config.load_defaults Rails::VERSION::STRING.to_f
config.secret_key_base = SecureRandom.hex
config.eager_load = true
config.active_support.test_order = :sorted

# Option added in Rails 7.0, defaults to false. Some helper_test tests assume true.
# Drop this override when support for Rails 6.1 is dropped
config.action_view.apply_stylesheet_media_default = true if Rails.gem_version >= Gem::Version.new('7.0.0')
end
end

0 comments on commit 0bd3c03

Please sign in to comment.