mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
assert log output match in case insensitive mode to avoid failure when quoted table name is in uppercase (when using Oracle)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user