aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-02-06 22:14:16 +0000
committerJon Leighton <j@jonathanleighton.com>2011-02-07 23:35:05 +0000
commite62b57647258fad34129975c5a264d19af2dbbe8 (patch)
treeffe90d076be6be8de213faac029c9e042c2a1749 /activerecord/test
parentd9870d92f733f0ef4452a0b6df338ed9dbcc05b3 (diff)
downloadrails-e62b57647258fad34129975c5a264d19af2dbbe8.tar.gz
rails-e62b57647258fad34129975c5a264d19af2dbbe8.tar.bz2
rails-e62b57647258fad34129975c5a264d19af2dbbe8.zip
Refactor the implementations of AssociatioCollection#delete and #destroy to be more consistent with each other, and to stop passing blocks around, thus making the execution easier to follow.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/autosave_association_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/autosave_association_test.rb b/activerecord/test/cases/autosave_association_test.rb
index c2f2609c9e..dd2ce786aa 100644
--- a/activerecord/test/cases/autosave_association_test.rb
+++ b/activerecord/test/cases/autosave_association_test.rb
@@ -837,7 +837,7 @@ class TestDestroyAsPartOfAutosaveAssociation < ActiveRecord::TestCase
@pirate.parrots.each { |parrot| parrot.mark_for_destruction }
assert @pirate.save
- assert_queries(1) do
+ assert_no_queries do
assert @pirate.save
end
end