diff options
author | kennyj <kennyj@gmail.com> | 2013-03-06 00:35:55 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2013-03-06 00:35:55 +0900 |
commit | e9fc2d3397af05ecc6083d56d4a36b78a0542324 (patch) | |
tree | 941c8ffea9ac2077b98ec4bf1106adb1edc51abb /activerecord/test | |
parent | 588f267e71083928ee8b6375a444fb674dad8fcf (diff) | |
download | rails-e9fc2d3397af05ecc6083d56d4a36b78a0542324.tar.gz rails-e9fc2d3397af05ecc6083d56d4a36b78a0542324.tar.bz2 rails-e9fc2d3397af05ecc6083d56d4a36b78a0542324.zip |
Remove unused return value, because collecting_queries_for_explain isn't public API.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/explain_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/cases/explain_test.rb b/activerecord/test/cases/explain_test.rb index b1d276f9eb..6dac5db111 100644 --- a/activerecord/test/cases/explain_test.rb +++ b/activerecord/test/cases/explain_test.rb @@ -20,7 +20,7 @@ if ActiveRecord::Base.connection.supports_explain? end def test_collecting_queries_for_explain - result, queries = ActiveRecord::Base.collecting_queries_for_explain do + queries = ActiveRecord::Base.collecting_queries_for_explain do Car.where(:name => 'honda').to_a end @@ -28,7 +28,6 @@ if ActiveRecord::Base.connection.supports_explain? assert_match "SELECT", sql assert_match "honda", sql assert_equal [], binds - assert_equal [cars(:honda)], result end def test_exec_explain_with_no_binds |