diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-04-17 21:33:08 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-04-17 21:58:47 +0100 |
commit | 2a5e317951fa28c570dc03c562d506ab366050ae (patch) | |
tree | 61eb5a15db460184400a4526515e5a464651cdab /activerecord/test/cases | |
parent | daf7a8c0db8ad23866e954cd925853ea5ce90fd4 (diff) | |
download | rails-2a5e317951fa28c570dc03c562d506ab366050ae.tar.gz rails-2a5e317951fa28c570dc03c562d506ab366050ae.tar.bz2 rails-2a5e317951fa28c570dc03c562d506ab366050ae.zip |
Fix test_associate_existing in has_many_through_associations_test on mysql and postgresql
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/associations/has_many_through_associations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_many_through_associations_test.rb b/activerecord/test/cases/associations/has_many_through_associations_test.rb index 1efe3420a0..70a4e06dbe 100644 --- a/activerecord/test/cases/associations/has_many_through_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_through_associations_test.rb @@ -44,7 +44,7 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase end def test_associate_existing - assert_queries(2) { posts(:thinking); people(:david) } + posts(:thinking); people(:david) # Warm cache assert_queries(1) do posts(:thinking).people << people(:david) |