1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix the query matching in SubscriberTest

This commit is contained in:
Pratik Naik 2010-01-14 13:51:41 +05:30
parent bed9179aa1
commit 43a84a054f

View file

@ -25,7 +25,7 @@ module SubscriberTest
wait wait
assert_equal 1, @logger.logged(:debug).size assert_equal 1, @logger.logged(:debug).size
assert_match /Developer Load/, @logger.logged(:debug).last assert_match /Developer Load/, @logger.logged(:debug).last
assert_match /SELECT \* FROM "developers"/, @logger.logged(:debug).last assert_match /SELECT .*?FROM .?developers.?/, @logger.logged(:debug).last
end end
def test_cached_queries def test_cached_queries
@ -36,7 +36,7 @@ module SubscriberTest
wait wait
assert_equal 2, @logger.logged(:debug).size assert_equal 2, @logger.logged(:debug).size
assert_match /CACHE/, @logger.logged(:debug).last assert_match /CACHE/, @logger.logged(:debug).last
assert_match /SELECT \* FROM "developers"/, @logger.logged(:debug).last assert_match /SELECT .*?FROM .?developers.?/, @logger.logged(:debug).last
end end
class SyncSubscriberTest < ActiveSupport::TestCase class SyncSubscriberTest < ActiveSupport::TestCase