mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Escape regex in controller_runtime_test to actually check that the ActiveRecord message appears
This commit is contained in:
parent
d491130236
commit
518ffcd168
1 changed files with 1 additions and 1 deletions
|
@ -37,6 +37,6 @@ class ControllerRuntimeLogSubscriberTest < ActionController::TestCase
|
|||
wait
|
||||
|
||||
assert_equal 2, @logger.logged(:info).size
|
||||
assert_match(/\(Views: [\d.]+ms | ActiveRecord: [\d.]+ms\)/, @logger.logged(:info)[1])
|
||||
assert_match(/\(Views: [\d.]+ms \| ActiveRecord: [\d.]+ms\)/, @logger.logged(:info)[1])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue