Tests: added more expected Ruby features.

This commit is contained in:
Andrei Zeliankou
2023-11-17 17:28:52 +00:00
parent 8fbe437ca6
commit 0fc5232107
3 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
app = Proc.new do |env|
[200, {
'x-multipart-buffer' => env['rack.multipart.buffer_size'].to_s
}, []]
end
run app

View File

@@ -0,0 +1,6 @@
app = Proc.new do |env|
env['rack.session'].clear
[200, {}, []]
end
run app

View File

@@ -315,6 +315,20 @@ def test_ruby_application_header_rack():
assert client.get()['status'] == 500, 'header rack'
@pytest.mark.skip('not yet')
def test_ruby_application_session():
client.load('session')
assert client.get()['status'] == 200
@pytest.mark.skip('not yet')
def test_ruby_application_multipart():
client.load('multipart')
assert client.get()['status'] == 200
def test_ruby_application_body_empty():
client.load('body_empty')