aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/caching_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-13 00:41:04 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-13 01:19:23 +0100
commitda5978c22374b8a3b15a421ff4920e0940435253 (patch)
treee9a94394f0ce7455cd0f955ede80e0b5f5f573b0 /actionpack/test/controller/caching_test.rb
parent8d78a82d797bf8809acb1d2ebb30cf81488ac99c (diff)
downloadrails-da5978c22374b8a3b15a421ff4920e0940435253.tar.gz
rails-da5978c22374b8a3b15a421ff4920e0940435253.tar.bz2
rails-da5978c22374b8a3b15a421ff4920e0940435253.zip
Add subscriber for ActionPack and move all logging inside it.
Diffstat (limited to 'actionpack/test/controller/caching_test.rb')
-rw-r--r--actionpack/test/controller/caching_test.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb
index 5a8dc0c358..8a13d1e5f1 100644
--- a/actionpack/test/controller/caching_test.rb
+++ b/actionpack/test/controller/caching_test.rb
@@ -629,20 +629,6 @@ class FragmentCachingTest < ActionController::TestCase
assert_equal 'generated till now -> fragment content', buffer
end
- def test_fragment_for_logging
- # Wait pending notifications to be published
- ActiveSupport::Notifications.notifier.wait
- @controller.logger = MockLogger.new
-
- fragment_computed = false
- @controller.fragment_for('buffer', 'expensive') { fragment_computed = true }
- ActiveSupport::Notifications.notifier.wait
-
- assert fragment_computed
- assert_match /Exist fragment\? "views\/expensive"/, @controller.logger.logged[0]
- assert_match /Write fragment "views\/expensive"/, @controller.logger.logged[1]
- end
-
end
class FunctionalCachingController < ActionController::Base