Permalink
Browse files

Escape regex in controller_runtime_test to actually check that the Ac…

…tiveRecord message appears
  • Loading branch information...
1 parent d491130 commit 518ffcd168776cfaaae49faad9650621b32f148e @tomafro tomafro committed May 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/test/activerecord/controller_runtime_test.rb
@@ -37,6 +37,6 @@ def test_log_with_active_record
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

0 comments on commit 518ffcd

Please sign in to comment.