aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-04-17 21:33:08 +0100
committerJon Leighton <j@jonathanleighton.com>2011-04-17 21:58:47 +0100
commit2a5e317951fa28c570dc03c562d506ab366050ae (patch)
tree61eb5a15db460184400a4526515e5a464651cdab /activerecord/test/cases/associations
parentdaf7a8c0db8ad23866e954cd925853ea5ce90fd4 (diff)
downloadrails-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/associations')
-rw-r--r--activerecord/test/cases/associations/has_many_through_associations_test.rb2
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)