diff options
author | Xavier Noria <fxn@hashref.com> | 2010-10-15 16:31:00 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-10-15 16:31:00 +0200 |
commit | 21ff8849bb7d4f1c277d767c7704eb63d8920cc7 (patch) | |
tree | 5e6b8d278ef14d0ab0089238bbce61bad5423b32 /actionpack/test | |
parent | c42ea2172eb977538cda076942d69eb90e090a26 (diff) | |
download | rails-21ff8849bb7d4f1c277d767c7704eb63d8920cc7.tar.gz rails-21ff8849bb7d4f1c277d767c7704eb63d8920cc7.tar.bz2 rails-21ff8849bb7d4f1c277d767c7704eb63d8920cc7.zip |
in regexps, the dot in a character class is not a metacharacter
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/activerecord/controller_runtime_test.rb | 2 | ||||
-rw-r--r-- | actionpack/test/controller/log_subscriber_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/activerecord/controller_runtime_test.rb b/actionpack/test/activerecord/controller_runtime_test.rb index 16fc901760..7931da3741 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 diff --git a/actionpack/test/controller/log_subscriber_test.rb b/actionpack/test/controller/log_subscriber_test.rb index 90c944d890..e6fe0b1f04 100644 --- a/actionpack/test/controller/log_subscriber_test.rb +++ b/actionpack/test/controller/log_subscriber_test.rb @@ -93,7 +93,7 @@ class ACLogSubscriberTest < ActionController::TestCase def test_process_action_with_view_runtime get :show wait - assert_match(/\(Views: [\d\.]+ms\)/, logs[1]) + assert_match(/\(Views: [\d.]+ms\)/, logs[1]) end def test_process_action_with_filter_parameters |