From 518ffcd168776cfaaae49faad9650621b32f148e Mon Sep 17 00:00:00 2001 From: Tom Ward Date: Sat, 14 May 2011 10:25:08 +0100 Subject: [PATCH] Escape regex in controller_runtime_test to actually check that the ActiveRecord message appears --- actionpack/test/activerecord/controller_runtime_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/test/activerecord/controller_runtime_test.rb b/actionpack/test/activerecord/controller_runtime_test.rb index 7931da3741..c030315d2b 100644 --- a/actionpack/test/activerecord/controller_runtime_test.rb +++ b/actionpack/test/activerecord/controller_runtime_test.rb @@ -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