aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/show_exceptions_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-03 23:39:09 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-03 23:39:09 +0100
commitf2d276fefdd620f18bb9fe3524ae9db6da70621d (patch)
treebb02c8fc29f304dfd53beec88dd6d28c322b008d /actionpack/test/dispatch/show_exceptions_test.rb
parent53c6984944b03b5de036167a418593dfcd12e886 (diff)
downloadrails-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/dispatch/show_exceptions_test.rb')
-rw-r--r--actionpack/test/dispatch/show_exceptions_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/show_exceptions_test.rb b/actionpack/test/dispatch/show_exceptions_test.rb
index 170b157d17..951fb4a22e 100644
--- a/actionpack/test/dispatch/show_exceptions_test.rb
+++ b/actionpack/test/dispatch/show_exceptions_test.rb
@@ -106,6 +106,9 @@ class ShowExceptionsTest < ActionController::IntegrationTest
end
test "publishes notifications" do
+ # Wait pending notifications to be published
+ ActiveSupport::Notifications.notifier.wait
+
@app, event = ProductionApp, nil
self.remote_addr = '127.0.0.1'