summaryrefslogtreecommitdiffhomepage
path: root/test/ruby
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2023-11-17 17:28:52 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2023-11-17 17:28:52 +0000
commit0fc5232107e8701dc0d1f2a6008e2dbecb73293b (patch)
tree778cf322e8e43c8e65c6960450992d913b1713f8 /test/ruby
parent8fbe437ca690d92a6d75b1d5314b5aa3bf8787b9 (diff)
downloadunit-0fc5232107e8701dc0d1f2a6008e2dbecb73293b.tar.gz
unit-0fc5232107e8701dc0d1f2a6008e2dbecb73293b.tar.bz2
Tests: added more expected Ruby features.
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/multipart/config.ru7
-rw-r--r--test/ruby/session/config.ru6
2 files changed, 13 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