提交 91d3d002 编写于 作者: A Aaron Patterson

fix tests for explain plan + binds

上级 b8264ef0
...@@ -26,8 +26,8 @@ def test_collecting_queries_for_explain ...@@ -26,8 +26,8 @@ def test_collecting_queries_for_explain
sql, binds = queries[0] sql, binds = queries[0]
assert_match "SELECT", sql assert_match "SELECT", sql
assert_match "honda", sql assert_equal "honda", binds.flatten.last
assert_equal [], binds assert_equal 1, binds.length
end end
def test_exec_explain_with_no_binds def test_exec_explain_with_no_binds
......
...@@ -15,7 +15,7 @@ def self.name; 'HotCompatibility'; end ...@@ -15,7 +15,7 @@ def self.name; 'HotCompatibility'; end
end end
teardown do teardown do
@klass.connection.drop_table :hot_compatibilities ActiveRecord::Base.connection.drop_table :hot_compatibilities
end end
test "insert after remove_column" do test "insert after remove_column" do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册