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:
parent
bed9179aa1
commit
43a84a054f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue