Permalink
Browse files

Fix the query matching in SubscriberTest

  • Loading branch information...
1 parent bed9179 commit 43a84a054f51f260e1d4a9d4be75783e497a3398 @lifo lifo committed Jan 14, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/subscriber_test.rb
@@ -25,7 +25,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.?/, @logger.logged(:debug).last
end
def test_cached_queries
@@ -36,7 +36,7 @@ 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.?/, @logger.logged(:debug).last
end
class SyncSubscriberTest < ActiveSupport::TestCase

0 comments on commit 43a84a0

Please sign in to comment.