mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Added one more failing test for bug #6036
This commit is contained in:
committed by
Aaron Patterson
parent
fd1daf9a8e
commit
febdf5a5a9
@@ -27,6 +27,12 @@ class RelationTest < ActiveRecord::TestCase
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user