Corrected the binary_content method

This commit is contained in:
Alexey Verkhovsky 2005-01-17 20:11:49 +00:00
parent f28e572c65
commit c50dd048e3

View file

@ -54,13 +54,13 @@ module ChunkMatch
end end
module AbstractController module ActionController
class TestResponse class TestResponse
def binary_content def binary_content
sio = StringIO.new sio = StringIO.new
begin begin
$stdout = sio $stdout = sio
r.body.call body.call
ensure ensure
$stdout = STDOUT $stdout = STDOUT
end end