Tests: added tests for Ruby stream IO.close().

This commit is contained in:
Andrei Zeliankou
2022-05-13 15:43:57 +01:00
parent 5883a2670f
commit de0a0beb83
3 changed files with 8 additions and 7 deletions

View File

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