提交 febdf5a5 编写于 作者: R Robert Pankowecki (Gavdi) 提交者: Aaron Patterson

Added one more failing test for bug #6036

上级 fd1daf9a
......@@ -27,6 +27,12 @@ def test_do_not_double_quote_string_id
assert_equal van.id, Minivan.where(:minivan_id => van).to_a.first.minivan_id
end
def test_do_not_double_quote_string_id_with_array
van = Minivan.last
assert van
assert_equal van, Minivan.where(:minivan_id => [van]).to_a.first
end
def test_bind_values
relation = Post.scoped
assert_equal [], relation.bind_values
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册