Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added one more failing test for bug #6036

  • Loading branch information...
commit af2999d364b669d5cbe8d81d2360a1c9b2f65702 1 parent 6ae9e9b
Robert Pankowecki (Gavdi) authored tenderlove committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 activerecord/test/cases/relations_test.rb
View
6 activerecord/test/cases/relations_test.rb
@@ -26,6 +26,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_two_named_scopes_with_includes_should_not_drop_any_include
car = Car.incl_engines.incl_tyres.first
assert_no_queries { car.tyres.length }
Please sign in to comment.
Something went wrong with that request. Please try again.