mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Assign config on base instead of on @controller
.
In some test runs `ActionController::Base.enable_fragment_cache_logging` would be false, based on the test order. Turns out it was off because we assigned the config to the `@controller` variable, and not on `ActionController::Base`. The test failure was reproducible with, and now passes after this: ``` bin/test test/controller/log_subscriber_test.rb --seed 19918 ```
This commit is contained in:
parent
6530fe6a25
commit
b377fc067d
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ class ACLogSubscriberTest < ActionController::TestCase
|
|||
|
||||
def setup
|
||||
super
|
||||
@controller.enable_fragment_cache_logging = true
|
||||
ActionController::Base.enable_fragment_cache_logging = true
|
||||
|
||||
@old_logger = ActionController::Base.logger
|
||||
|
||||
|
|
Loading…
Reference in a new issue