Tests: Ruby module.

This commit is contained in:
Andrey Zelenkov
2018-03-21 18:26:40 +03:00
parent 37051b6c15
commit c7e67446a3
33 changed files with 565 additions and 15 deletions

View File

@@ -0,0 +1,14 @@
app = Proc.new do |env|
body = ''
buf = ''
loop do
buf = env['rack.input'].gets
break if buf == nil
body += buf
end
['200', {
'Content-Length' => body.length.to_s
}, [body]]
end
run app