diff options
| author | Jon Leighton <j@jonathanleighton.com> | 2011-02-06 22:14:16 +0000 | 
|---|---|---|
| committer | Jon Leighton <j@jonathanleighton.com> | 2011-02-07 23:35:05 +0000 | 
| commit | e62b57647258fad34129975c5a264d19af2dbbe8 (patch) | |
| tree | ffe90d076be6be8de213faac029c9e042c2a1749 /activerecord/test | |
| parent | d9870d92f733f0ef4452a0b6df338ed9dbcc05b3 (diff) | |
| download | rails-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.rb | 2 | 
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  | 
