提交 2487a379 编写于 作者: V Vitor Oliveira 提交者: Ryuta Kamizono

Fix deprecation hash warning - activerecord test

上级 f818eb55
......@@ -227,7 +227,7 @@ def test_select_all_with_legacy_binds
post = Post.create!(title: "foo", body: "bar")
expected = @connection.select_all("SELECT * FROM posts WHERE id = #{post.id}")
result = @connection.select_all("SELECT * FROM posts WHERE id = #{Arel::Nodes::BindParam.new(nil).to_sql}", nil, [[nil, post.id]])
assert_equal expected.to_hash, result.to_hash
assert_equal expected.to_a, result.to_a
end
def test_insert_update_delete_with_legacy_binds
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册