diff options
author | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2010-02-15 17:57:45 +0200 |
---|---|---|
committer | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2010-06-04 22:44:03 +0300 |
commit | a82e06709179791e6b0a3bca37113f144dcefbb8 (patch) | |
tree | 2c5cb10cf94ac8cca3bc93acdd7b9694c2984b81 /activerecord/test | |
parent | a83e6b1b6aa8ee67a47658ed27481e38aa2a62da (diff) | |
download | rails-a82e06709179791e6b0a3bca37113f144dcefbb8.tar.gz rails-a82e06709179791e6b0a3bca37113f144dcefbb8.tar.bz2 rails-a82e06709179791e6b0a3bca37113f144dcefbb8.zip |
assert log output match in case insensitive mode to avoid failure when quoted table name is in uppercase (when using Oracle)
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/log_subscriber_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/log_subscriber_test.rb b/activerecord/test/cases/log_subscriber_test.rb index 6ba84fa57b..1f544b4211 100644 --- a/activerecord/test/cases/log_subscriber_test.rb +++ b/activerecord/test/cases/log_subscriber_test.rb @@ -27,7 +27,7 @@ class LogSubscriberTest < ActiveSupport::TestCase wait assert_equal 1, @logger.logged(:debug).size assert_match(/Developer Load/, @logger.logged(:debug).last) - assert_match(/SELECT .*?FROM .?developers.?/, @logger.logged(:debug).last) + assert_match(/SELECT .*?FROM .?developers.?/i, @logger.logged(:debug).last) end def test_cached_queries @@ -38,6 +38,6 @@ class LogSubscriberTest < ActiveSupport::TestCase wait assert_equal 2, @logger.logged(:debug).size assert_match(/CACHE/, @logger.logged(:debug).last) - assert_match(/SELECT .*?FROM .?developers.?/, @logger.logged(:debug).last) + assert_match(/SELECT .*?FROM .?developers.?/i, @logger.logged(:debug).last) end end |