From c391919180a19a31a04b9483396d0543a4bed961 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 2 Aug 2012 15:04:36 -0700 Subject: [PATCH] make sure the body finishes rendering before checking response closure --- actionpack/test/controller/live_stream_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/actionpack/test/controller/live_stream_test.rb b/actionpack/test/controller/live_stream_test.rb index 5ce1acccf1..20e433d1ec 100644 --- a/actionpack/test/controller/live_stream_test.rb +++ b/actionpack/test/controller/live_stream_test.rb @@ -114,7 +114,8 @@ module ActionController def test_render_text get :render_text - assert @response.stream.closed?, 'stream should be closed' + assert_equal 'zomg', response.body + assert response.stream.closed?, 'stream should be closed' end end end