diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2010-01-14 13:51:41 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-01-16 00:02:46 +0530 |
commit | 43a84a054f51f260e1d4a9d4be75783e497a3398 (patch) | |
tree | da130e7da2feef402105c3b0c3f792fe4d7da379 | |
parent | bed9179aa1496f6d28891cf515af0d7e515ebbab (diff) | |
download | rails-43a84a054f51f260e1d4a9d4be75783e497a3398.tar.gz rails-43a84a054f51f260e1d4a9d4be75783e497a3398.tar.bz2 rails-43a84a054f51f260e1d4a9d4be75783e497a3398.zip |
Fix the query matching in SubscriberTest
-rw-r--r-- | activerecord/test/cases/subscriber_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/subscriber_test.rb b/activerecord/test/cases/subscriber_test.rb index 699edbeb76..ce91d9385d 100644 --- a/activerecord/test/cases/subscriber_test.rb +++ b/activerecord/test/cases/subscriber_test.rb @@ -25,7 +25,7 @@ module SubscriberTest 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 @@ module SubscriberTest 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 |