Permalink
Browse files

fix tests for explain plan + binds

  • Loading branch information...
1 parent b8264ef commit 91d3d00240a2f75c74664580398628207bb7d350 @tenderlove tenderlove committed Jan 14, 2014
Showing with 3 additions and 3 deletions.
  1. +2 −2 activerecord/test/cases/explain_test.rb
  2. +1 −1 activerecord/test/cases/hot_compatibility_test.rb
@@ -26,8 +26,8 @@ def test_collecting_queries_for_explain
sql, binds = queries[0]
assert_match "SELECT", sql
- assert_match "honda", sql
- assert_equal [], binds
+ assert_equal "honda", binds.flatten.last
+ assert_equal 1, binds.length
end
def test_exec_explain_with_no_binds
@@ -15,7 +15,7 @@ def self.name; 'HotCompatibility'; end
end
teardown do
- @klass.connection.drop_table :hot_compatibilities
+ ActiveRecord::Base.connection.drop_table :hot_compatibilities
end
test "insert after remove_column" do

0 comments on commit 91d3d00

Please sign in to comment.