aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-12-01 12:19:42 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2009-12-01 12:19:42 -0800
commit0c4990b5f4b8c99ea656170eff9bb9c3490de642 (patch)
tree58a6bed09ca27fd7985d2c2fa6a39d9b58d34613 /actionpack/test
parent6e30361260205cb7029fbc78b4a98b66a884ce45 (diff)
downloadrails-0c4990b5f4b8c99ea656170eff9bb9c3490de642.tar.gz
rails-0c4990b5f4b8c99ea656170eff9bb9c3490de642.tar.bz2
rails-0c4990b5f4b8c99ea656170eff9bb9c3490de642.zip
Fix caching test to ensure notifications are all delivered
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/caching_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb
index 54de920740..682a8f3995 100644
--- a/actionpack/test/controller/caching_test.rb
+++ b/actionpack/test/controller/caching_test.rb
@@ -640,6 +640,7 @@ class FragmentCachingTest < ActionController::TestCase
assert fragment_computed
assert_equal 'generated till now -> ', buffer
+ ActiveSupport::Notifications.notifier.wait
assert_equal [:fragment_exist?, :write_fragment], events.map(&:first)
end