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

fix tests for explain plan + binds

上级 b8264ef0
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册