Skip to content

Commit 0fc5232

Browse files
Tests: added more expected Ruby features.
1 parent 8fbe437 commit 0fc5232

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

test/ruby/multipart/config.ru

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
app = Proc.new do |env|
2+
[200, {
3+
'x-multipart-buffer' => env['rack.multipart.buffer_size'].to_s
4+
}, []]
5+
end
6+
7+
run app

test/ruby/session/config.ru

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
app = Proc.new do |env|
2+
env['rack.session'].clear
3+
[200, {}, []]
4+
end
5+
6+
run app

test/test_ruby_application.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,20 @@ def test_ruby_application_header_rack():
315315
assert client.get()['status'] == 500, 'header rack'
316316

317317

318+
@pytest.mark.skip('not yet')
319+
def test_ruby_application_session():
320+
client.load('session')
321+
322+
assert client.get()['status'] == 200
323+
324+
325+
@pytest.mark.skip('not yet')
326+
def test_ruby_application_multipart():
327+
client.load('multipart')
328+
329+
assert client.get()['status'] == 200
330+
331+
318332
def test_ruby_application_body_empty():
319333
client.load('body_empty')
320334

0 commit comments

Comments
 (0)