aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/console_test.rb
diff options
context:
space:
mode:
authorJohn Firebaugh <john_firebaugh@us.ibm.com>2010-12-19 15:58:58 -0800
committerJosé Valim <jose.valim@gmail.com>2010-12-20 12:43:02 +0100
commit435bccda930e4dde3d0fafca958e1c8330b4c3ca (patch)
treed0f4eb51a6cc7cedb292da1125ed3b5eea4c7de3 /railties/test/application/console_test.rb
parent0f7c970e4f1cf0f3bcc01c22a6a3038cb3e34668 (diff)
downloadrails-435bccda930e4dde3d0fafca958e1c8330b4c3ca.tar.gz
rails-435bccda930e4dde3d0fafca958e1c8330b4c3ca.tar.bz2
rails-435bccda930e4dde3d0fafca958e1c8330b4c3ca.zip
Replace AD::Callbacks.to_prepare with AD::Reloader.to_prepare
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties/test/application/console_test.rb')
-rw-r--r--railties/test/application/console_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/test/application/console_test.rb b/railties/test/application/console_test.rb
index d4159dd0fd..5f84c2b948 100644
--- a/railties/test/application/console_test.rb
+++ b/railties/test/application/console_test.rb
@@ -26,14 +26,14 @@ class ConsoleTest < Test::Unit::TestCase
assert_instance_of ActionDispatch::Integration::Session, session
end
- def test_reload_should_fire_preparation_callbacks
+ def test_reload_should_fire_preparation_and_cleanup_callbacks
load_environment
a = b = c = nil
# TODO: These should be defined on the initializer
- ActionDispatch::Callbacks.to_prepare { a = b = c = 1 }
- ActionDispatch::Callbacks.to_prepare { b = c = 2 }
- ActionDispatch::Callbacks.to_prepare { c = 3 }
+ ActionDispatch::Reloader.to_prepare { a = b = c = 1 }
+ ActionDispatch::Reloader.to_prepare { b = c = 2 }
+ ActionDispatch::Reloader.to_cleanup { c = 3 }
# Hide Reloading... output
silence_stream(STDOUT) { reload! }