diff options
author | Prem Sichanugrist <s@sikachu.com> | 2010-02-15 21:44:30 +0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-16 22:36:15 +0100 |
commit | f0523f72b46db14e2f50c8347a8708734c650f84 (patch) | |
tree | cf6562eb8f6c2e302a33840f36f04d838aadb569 /actionpack/test/template | |
parent | 7cff54f5d3ae2e364f0d147ceb86ea701b21389c (diff) | |
download | rails-f0523f72b46db14e2f50c8347a8708734c650f84.tar.gz rails-f0523f72b46db14e2f50c8347a8708734c650f84.tar.bz2 rails-f0523f72b46db14e2f50c8347a8708734c650f84.zip |
Rename Rails::Subscriber to Rails::LogSubscriber
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/log_subscriber_test.rb (renamed from actionpack/test/template/subscriber_test.rb) | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/test/template/subscriber_test.rb b/actionpack/test/template/log_subscriber_test.rb index 8bacab7088..2eb2484cf5 100644 --- a/actionpack/test/template/subscriber_test.rb +++ b/actionpack/test/template/log_subscriber_test.rb @@ -1,22 +1,22 @@ require "abstract_unit" -require "rails/subscriber/test_helper" -require "action_view/railties/subscriber" +require "rails/log_subscriber/test_helper" +require "action_view/railties/log_subscriber" require "controller/fake_models" -class AVSubscriberTest < ActiveSupport::TestCase - include Rails::Subscriber::TestHelper +class AVLogSubscriberTest < ActiveSupport::TestCase + include Rails::LogSubscriber::TestHelper 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) + Rails::LogSubscriber.add(:action_view, ActionView::Railties::LogSubscriber.new) super end def teardown super - Rails::Subscriber.subscribers.clear + Rails::LogSubscriber.log_subscribers.clear ActionController::Base.logger = @old_logger end |