diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-03 23:39:09 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-03 23:39:09 +0100 |
commit | f2d276fefdd620f18bb9fe3524ae9db6da70621d (patch) | |
tree | bb02c8fc29f304dfd53beec88dd6d28c322b008d /actionpack/test/controller | |
parent | 53c6984944b03b5de036167a418593dfcd12e886 (diff) | |
download | rails-f2d276fefdd620f18bb9fe3524ae9db6da70621d.tar.gz rails-f2d276fefdd620f18bb9fe3524ae9db6da70621d.tar.bz2 rails-f2d276fefdd620f18bb9fe3524ae9db6da70621d.zip |
Ensure no notification is on the queue before running notifications related tests.
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/caching_test.rb | 2 | ||||
-rw-r--r-- | actionpack/test/controller/logging_test.rb | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb index 54d1a72f1f..5a8dc0c358 100644 --- a/actionpack/test/controller/caching_test.rb +++ b/actionpack/test/controller/caching_test.rb @@ -630,6 +630,8 @@ class FragmentCachingTest < ActionController::TestCase end def test_fragment_for_logging + # Wait pending notifications to be published + ActiveSupport::Notifications.notifier.wait @controller.logger = MockLogger.new fragment_computed = false diff --git a/actionpack/test/controller/logging_test.rb b/actionpack/test/controller/logging_test.rb index 6b9db88d83..594cf17312 100644 --- a/actionpack/test/controller/logging_test.rb +++ b/actionpack/test/controller/logging_test.rb @@ -19,6 +19,7 @@ class LoggingTest < ActionController::TestCase def setup super + wait # Wait pending notifications to be published set_logger end |