summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/multipart/config.ru7
-rw-r--r--test/ruby/session/config.ru6
-rw-r--r--test/test_ruby_application.py14
3 files changed, 27 insertions, 0 deletions
diff --git a/test/ruby/multipart/config.ru b/test/ruby/multipart/config.ru
new file mode 100644
index 00000000..9187997c
--- /dev/null
+++ b/test/ruby/multipart/config.ru
@@ -0,0 +1,7 @@
+app = Proc.new do |env|
+ [200, {
+ 'x-multipart-buffer' => env['rack.multipart.buffer_size'].to_s
+ }, []]
+end
+
+run app
diff --git a/test/ruby/session/config.ru b/test/ruby/session/config.ru
new file mode 100644
index 00000000..8cea0588
--- /dev/null
+++ b/test/ruby/session/config.ru
@@ -0,0 +1,6 @@
+app = Proc.new do |env|
+ env['rack.session'].clear
+ [200, {}, []]
+end
+
+run app
diff --git a/test/test_ruby_application.py b/test/test_ruby_application.py
index fb161c61..3ac62f71 100644
--- a/test/test_ruby_application.py
+++ b/test/test_ruby_application.py
@@ -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')