Tests: added tests for Ruby stream IO.close().
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
app = Proc.new do |env|
|
||||
env['rack.errors'].write('Error in application')
|
||||
env['rack.errors'].flush
|
||||
env['rack.errors'].close
|
||||
['200', {'Content-Length' => '0'}, ['']]
|
||||
end
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
app = Proc.new do |env|
|
||||
body = env['rack.input'].gets
|
||||
env['rack.input'].close
|
||||
['200', {
|
||||
'Content-Length' => body.length.to_s
|
||||
}, [body]]
|
||||
|
||||
Reference in New Issue
Block a user