aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2011-01-09 10:15:05 -0800
committerSantiago Pastorino <santiago@wyeworks.com>2011-01-31 19:45:53 -0200
commit57bc25c5f8129f57b08a2dc7c319b86778dd8a40 (patch)
tree4e21728c5dd1866f654ed88d169552a77fa6483b /activesupport/test
parent9666b6a625c9fef555c2a18df6721fed2000f131 (diff)
downloadrails-57bc25c5f8129f57b08a2dc7c319b86778dd8a40.tar.gz
rails-57bc25c5f8129f57b08a2dc7c319b86778dd8a40.tar.bz2
rails-57bc25c5f8129f57b08a2dc7c319b86778dd8a40.zip
Use run_callbacks; the generated _run_<name>_callbacks method is not a public interface.
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/callback_inheritance_test.rb2
-rw-r--r--activesupport/test/callbacks_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/callback_inheritance_test.rb b/activesupport/test/callback_inheritance_test.rb
index 8caf000c5d..71249050fc 100644
--- a/activesupport/test/callback_inheritance_test.rb
+++ b/activesupport/test/callback_inheritance_test.rb
@@ -70,7 +70,7 @@ class EmptyParent
end
def dispatch
- _run_dispatch_callbacks
+ run_callbacks :dispatch
self
end
end
diff --git a/activesupport/test/callbacks_test.rb b/activesupport/test/callbacks_test.rb
index c89b03e243..cff914f4ae 100644
--- a/activesupport/test/callbacks_test.rb
+++ b/activesupport/test/callbacks_test.rb
@@ -14,7 +14,7 @@ module CallbacksTest
def after_save1; self.history << :after; end
def save
- self.send(:_run_save_callbacks) do
+ run_callbacks :save do
raise 'boom'
end
end