Tests: added more expected Ruby features.
This commit is contained in:
7
test/ruby/multipart/config.ru
Normal file
7
test/ruby/multipart/config.ru
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
app = Proc.new do |env|
|
||||||
|
[200, {
|
||||||
|
'x-multipart-buffer' => env['rack.multipart.buffer_size'].to_s
|
||||||
|
}, []]
|
||||||
|
end
|
||||||
|
|
||||||
|
run app
|
||||||
6
test/ruby/session/config.ru
Normal file
6
test/ruby/session/config.ru
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
app = Proc.new do |env|
|
||||||
|
env['rack.session'].clear
|
||||||
|
[200, {}, []]
|
||||||
|
end
|
||||||
|
|
||||||
|
run app
|
||||||
@@ -315,6 +315,20 @@ def test_ruby_application_header_rack():
|
|||||||
assert client.get()['status'] == 500, '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():
|
def test_ruby_application_body_empty():
|
||||||
client.load('body_empty')
|
client.load('body_empty')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user