diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-13 01:04:33 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-13 01:19:24 +0100 |
commit | b0d35ad00c3d7f6f63aa7ae8f3d3cb802bb90d69 (patch) | |
tree | 2d8f3aa4b362db150d092a883a27ca46a0af6a63 /actionpack/test/template | |
parent | da5978c22374b8a3b15a421ff4920e0940435253 (diff) | |
download | rails-b0d35ad00c3d7f6f63aa7ae8f3d3cb802bb90d69.tar.gz rails-b0d35ad00c3d7f6f63aa7ae8f3d3cb802bb90d69.tar.bz2 rails-b0d35ad00c3d7f6f63aa7ae8f3d3cb802bb90d69.zip |
Test fragment/page cache and send data/file notifications.
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/subscriber_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/template/subscriber_test.rb b/actionpack/test/template/subscriber_test.rb index a73ff2e932..2f58638364 100644 --- a/actionpack/test/template/subscriber_test.rb +++ b/actionpack/test/template/subscriber_test.rb @@ -4,17 +4,18 @@ require "action_view/railties/subscriber" require "controller/fake_models" module ActionViewSubscriberTest - Rails::Subscriber.add(:action_view, ActionView::Railties::Subscriber.new) def setup @old_logger = ActionController::Base.logger @view = ActionView::Base.new(ActionController::Base.view_paths, {}) Rails.stubs(:root).returns(File.expand_path(FIXTURE_LOAD_PATH)) + Rails::Subscriber.add(:action_view, ActionView::Railties::Subscriber.new) super end def teardown super + Rails::Subscriber.subscribers.clear ActionController::Base.logger = @old_logger end |