Permalink
Browse files

Fix quoting in test_counting_with_single_conditions

  • Loading branch information...
1 parent ddab9d7 commit 2275b8daab924a8e26afbd4048d8ab9530e7c792 @jeremy jeremy committed Jun 12, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/associations/has_many_associations_test.rb
View
2 activerecord/test/cases/associations/has_many_associations_test.rb
@@ -37,7 +37,7 @@ def test_counting_with_empty_hash_conditions
end
def test_counting_with_single_conditions
- assert_equal 1, Firm.find(:first).plain_clients.count(:conditions => 'name="Microsoft"')
+ assert_equal 1, Firm.find(:first).plain_clients.count(:conditions => ['name=?', "Microsoft"])
end
def test_counting_with_single_hash

0 comments on commit 2275b8d

Please sign in to comment.