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:
parent
3c731a4ad6
commit
c391919180
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue