aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-05-07 04:08:58 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-05-07 04:10:00 +0900
commitb201474756a2ee493406ad0cb49f49c6873bdc28 (patch)
tree5bf7fc2271ddc5d4ed511db35893c2049142831b /actionview/test/activerecord
parentaf58740b8d943f90a18c3e7ceca9432775cfe192 (diff)
downloadrails-b201474756a2ee493406ad0cb49f49c6873bdc28.tar.gz
rails-b201474756a2ee493406ad0cb49f49c6873bdc28.tar.bz2
rails-b201474756a2ee493406ad0cb49f49c6873bdc28.zip
Should escape meta characters in regexp
Diffstat (limited to 'actionview/test/activerecord')
-rw-r--r--actionview/test/activerecord/controller_runtime_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/test/activerecord/controller_runtime_test.rb b/actionview/test/activerecord/controller_runtime_test.rb
index 590559f592..1cec5072c0 100644
--- a/actionview/test/activerecord/controller_runtime_test.rb
+++ b/actionview/test/activerecord/controller_runtime_test.rb
@@ -67,7 +67,7 @@ class ControllerRuntimeLogSubscriberTest < ActionController::TestCase
wait
assert_equal 2, @logger.logged(:info).size
- assert_match(/\(Views: [\d.]+ms \| ActiveRecord: 0.0ms\)/, @logger.logged(:info)[1])
+ assert_match(/\(Views: [\d.]+ms \| ActiveRecord: 0\.0ms\)/, @logger.logged(:info)[1])
end
def test_log_with_active_record_when_post