aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorDavid Chelimsky <dchelimsky@gmail.com>2010-04-24 21:12:02 -0500
committerJeremy Kemper <jeremy@bitsweat.net>2010-04-24 22:06:24 -0700
commit864bd9c21fdc8ce265c48fdfa2d4d7917032e717 (patch)
treeaff882b58a30b4c7b02e521564dba3ce672fa8a8 /actionpack/lib
parentdf886c4c89f3b8a95ef2456d6893393376b330a9 (diff)
downloadrails-864bd9c21fdc8ce265c48fdfa2d4d7917032e717.tar.gz
rails-864bd9c21fdc8ce265c48fdfa2d4d7917032e717.tar.bz2
rails-864bd9c21fdc8ce265c48fdfa2d4d7917032e717.zip
allow unsubscribe by name or subscription [#4433 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/test_case.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb
index b3758218a2..27939e3434 100644
--- a/actionpack/lib/action_controller/test_case.rb
+++ b/actionpack/lib/action_controller/test_case.rb
@@ -36,6 +36,7 @@ module ActionController
end
def teardown_subscriptions
+ ActiveSupport::Notifications.unsubscribe("action_view.render_template")
ActiveSupport::Notifications.unsubscribe("action_view.render_template!")
end