From 68d3e1f42f7de671a07cf1eb9de577fa2f8c82f0 Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Thu, 7 Jun 2012 20:45:23 +0100 Subject: Make test cover previous reversion --- activerecord/test/cases/associations/callbacks_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/test/cases/associations') diff --git a/activerecord/test/cases/associations/callbacks_test.rb b/activerecord/test/cases/associations/callbacks_test.rb index 2d0d4541b4..532def45cd 100644 --- a/activerecord/test/cases/associations/callbacks_test.rb +++ b/activerecord/test/cases/associations/callbacks_test.rb @@ -139,6 +139,7 @@ class AssociationCallbacksTest < ActiveRecord::TestCase assert activerecord.developers_with_callbacks.size == 2 end log_array = activerecord.developers_with_callbacks.collect {|d| ["before_removing#{d.id}","after_removing#{d.id}"]}.flatten.sort + activerecord.reload assert activerecord.developers_with_callbacks.clear assert_equal log_array, activerecord.developers_log.sort end -- cgit v1.2.3