1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

make sure the body finishes rendering before checking response closure

This commit is contained in:
Aaron Patterson 2012-08-02 15:04:36 -07:00
parent 3c731a4ad6
commit c391919180

View file

@ -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