diff options
author | Daniel Schierbeck <dasch@zendesk.com> | 2013-05-10 16:21:59 +0200 |
---|---|---|
committer | Daniel Schierbeck <dasch@zendesk.com> | 2013-05-10 16:21:59 +0200 |
commit | 1cc63e94dbe52a9cf01a71c1dc45ee18443f97dc (patch) | |
tree | b0180866fbdf5a6b302cf1e869f6b65f8a4ac6de /activerecord/test | |
parent | 04d27153fcefaea380fce63e4c9d6e65b27d78b2 (diff) | |
download | rails-1cc63e94dbe52a9cf01a71c1dc45ee18443f97dc.tar.gz rails-1cc63e94dbe52a9cf01a71c1dc45ee18443f97dc.tar.bz2 rails-1cc63e94dbe52a9cf01a71c1dc45ee18443f97dc.zip |
Don't try to EXPLAIN select_db calls
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/explain_subscriber_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/explain_subscriber_test.rb b/activerecord/test/cases/explain_subscriber_test.rb index fb53a92c89..b00e2744b9 100644 --- a/activerecord/test/cases/explain_subscriber_test.rb +++ b/activerecord/test/cases/explain_subscriber_test.rb @@ -43,6 +43,11 @@ if ActiveRecord::Base.connection.supports_explain? assert queries.empty? end + def test_collects_nothing_if_the_statement_is_only_partially_matched + SUBSCRIBER.finish(nil, nil, name: 'SQL', sql: 'select_db yo_mama') + assert queries.empty? + end + def teardown ActiveRecord::ExplainRegistry.reset end |