From ac0b492a03a012dd21f6c4d254676684b19e2665 Mon Sep 17 00:00:00 2001 From: Matthias Hennemeyer Date: Tue, 1 Dec 2009 17:36:29 +0100 Subject: [PATCH] Drain Notifications Queue in caching test --- actionpack/test/controller/caching_test.rb | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb index 54de920..aa02880 100644 --- a/actionpack/test/controller/caching_test.rb +++ b/actionpack/test/controller/caching_test.rb @@ -638,6 +638,8 @@ class FragmentCachingTest < ActionController::TestCase buffer = 'generated till now -> ' @controller.fragment_for(buffer, 'expensive') { fragment_computed = true } + ActiveSupport::Notifications.notifier.wait + assert fragment_computed assert_equal 'generated till now -> ', buffer assert_equal [:fragment_exist?, :write_fragment], events.map(&:first) -- 1.6.4.2