File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
mounted_app/test/dummy/config Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 12
12
13
13
module TestDummyApp
14
14
class Application < Rails ::Application
15
- config . secret_key_base = 'abcdef'
15
+ config . load_defaults Rails ::VERSION ::STRING . to_f
16
+ config . secret_key_base = SecureRandom . hex
16
17
config . eager_load = true
17
18
end
18
19
end
Original file line number Diff line number Diff line change @@ -18,8 +18,14 @@ class Rails::Console; end
18
18
19
19
module TestApp
20
20
class Application < ::Rails ::Application
21
- config . secret_key_base = 'abcdef'
21
+ config . load_defaults Rails ::VERSION ::STRING . to_f
22
+ config . secret_key_base = SecureRandom . hex
22
23
config . eager_load = true
23
24
config . active_support . test_order = :sorted
25
+
26
+ if Rails . gem_version >= Gem ::Version . new ( '7.0.0' )
27
+ # Option added in Rails 7.0, defaults to false. Some helper_test tests assume true.
28
+ config . action_view . apply_stylesheet_media_default = true
29
+ end
24
30
end
25
31
end
You can’t perform that action at this time.
0 commit comments