From 0549ebea223beeb68c09ac9656579f02e893c0f7 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sat, 11 May 2013 01:28:06 +0200 Subject: Revert "Don't try to EXPLAIN select_db calls" Reason: This was backported, but the test does not pass as is. This reverts commit a33d320cf4b57fabd9c299b09c217ee3955ecc77. --- activerecord/test/cases/explain_subscriber_test.rb | 7 ------- 1 file changed, 7 deletions(-) (limited to 'activerecord/test/cases/explain_subscriber_test.rb') diff --git a/activerecord/test/cases/explain_subscriber_test.rb b/activerecord/test/cases/explain_subscriber_test.rb index f929ddd79e..7b852a625d 100644 --- a/activerecord/test/cases/explain_subscriber_test.rb +++ b/activerecord/test/cases/explain_subscriber_test.rb @@ -38,13 +38,6 @@ if ActiveRecord::Base.connection.supports_explain? end end - def test_collects_nothing_if_the_statement_is_only_partially_matched - with_queries([]) do |queries| - SUBSCRIBER.finish(:name => 'SQL', :sql => 'select_db yo_mama') - assert queries.empty? - end - end - def test_collects_nothing_if_unexplained_sqls with_queries([]) do |queries| SUBSCRIBER.call(:name => 'SQL', :sql => 'SHOW max_identifier_length') -- cgit v1.2.3