Permalink
Browse files

Added one more failing test for bug #6036

  • Loading branch information...
1 parent 6ae9e9b commit af2999d364b669d5cbe8d81d2360a1c9b2f65702 Robert Pankowecki (Gavdi) committed with tenderlove Dec 31, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 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 }

0 comments on commit af2999d

Please sign in to comment.