Permalink
Browse files

assert log output match in case insensitive mode to avoid failure whe…

…n quoted table name is in uppercase (when using Oracle)
  • Loading branch information...
1 parent a83e6b1 commit a82e06709179791e6b0a3bca37113f144dcefbb8 @rsim rsim committed Feb 15, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/log_subscriber_test.rb
@@ -27,7 +27,7 @@ def test_basic_query_logging
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 @@ def test_cached_queries
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

0 comments on commit a82e067

Please sign in to comment.