提交 c65cfd76 编写于 作者: A Aaron Patterson

switch to arrays for bind removal test

we can't make bind values for arrays yet
上级 2f885300
......@@ -1534,10 +1534,8 @@ def test_unscope_removes_binds
end
def test_merging_removes_rhs_bind_parameters
left = Post.where(id: Arel::Nodes::BindParam.new('?'))
column = Post.columns_hash['id']
left.bind_values += [[column, 20]]
right = Post.where(id: 10)
left = Post.where(id: 20)
right = Post.where(id: [1,2,3,4])
merged = left.merge(right)
assert_equal [], merged.bind_values
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册