diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-11 19:21:47 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-11 19:21:47 -0700 |
commit | 2275b8daab924a8e26afbd4048d8ab9530e7c792 (patch) | |
tree | 4e8e7c0c8710eec8d76026bb790c2b2f214c1c04 /activerecord/test/cases | |
parent | ddab9d7fdf49eb064f3f669bbf6ebb41e75e9fb5 (diff) | |
download | rails-2275b8daab924a8e26afbd4048d8ab9530e7c792.tar.gz rails-2275b8daab924a8e26afbd4048d8ab9530e7c792.tar.bz2 rails-2275b8daab924a8e26afbd4048d8ab9530e7c792.zip |
Fix quoting in test_counting_with_single_conditions
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/associations/has_many_associations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb index d3200b1c7f..b638143c5a 100644 --- a/activerecord/test/cases/associations/has_many_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_associations_test.rb @@ -37,7 +37,7 @@ class HasManyAssociationsTest < ActiveRecord::TestCase 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 |