diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-08-02 15:04:36 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-08-03 00:27:39 -0400 |
commit | c391919180a19a31a04b9483396d0543a4bed961 (patch) | |
tree | 99c07aee3ad225f6ffae84d003ac65d19a707b07 /actionpack/test | |
parent | 3c731a4ad62430100ba0b65bc966aa6dc6280c5f (diff) | |
download | rails-c391919180a19a31a04b9483396d0543a4bed961.tar.gz rails-c391919180a19a31a04b9483396d0543a4bed961.tar.bz2 rails-c391919180a19a31a04b9483396d0543a4bed961.zip |
make sure the body finishes rendering before checking response closure
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/live_stream_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 |