Browse files

make sure the body finishes rendering before checking response closure

  • Loading branch information...
1 parent 3c731a4 commit c391919180a19a31a04b9483396d0543a4bed961 @tenderlove tenderlove committed Aug 2, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 actionpack/test/controller/live_stream_test.rb
View
3 actionpack/test/controller/live_stream_test.rb
@@ -114,7 +114,8 @@ def test_live_stream_default_header
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

0 comments on commit c391919

Please sign in to comment.