summaryrefslogtreecommitdiffhomepage
path: root/test/ruby
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2024-01-15 17:53:46 +0000
committerandrey-zelenkov <xim.andrew@gmail.com>2024-01-16 15:59:30 +0000
commit4e08f4954917ba8485823ab56619089a75c25129 (patch)
treec567ee89c231ce1cec1416dc89ecabe9e93a49f7 /test/ruby
parenta1e00b4e28d56365b4b5cc4aa44185c4b53f5c33 (diff)
downloadunit-4e08f4954917ba8485823ab56619089a75c25129.tar.gz
unit-4e08f4954917ba8485823ab56619089a75c25129.tar.bz2
Tests: added Ruby tests with array in header values
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/header_array/config.ru7
-rw-r--r--test/ruby/header_array_empty/config.ru7
-rw-r--r--test/ruby/header_array_nil/config.ru7
3 files changed, 21 insertions, 0 deletions
diff --git a/test/ruby/header_array/config.ru b/test/ruby/header_array/config.ru
new file mode 100644
index 00000000..6401ab4b
--- /dev/null
+++ b/test/ruby/header_array/config.ru
@@ -0,0 +1,7 @@
+app = Proc.new do |env|
+ ['200', {
+ 'x-array' => ['name=value', '', 'value', 'av'],
+ }, []]
+end
+
+run app
diff --git a/test/ruby/header_array_empty/config.ru b/test/ruby/header_array_empty/config.ru
new file mode 100644
index 00000000..df40ffdd
--- /dev/null
+++ b/test/ruby/header_array_empty/config.ru
@@ -0,0 +1,7 @@
+app = Proc.new do |env|
+ ['200', {
+ 'x-array' => [],
+ }, []]
+end
+
+run app
diff --git a/test/ruby/header_array_nil/config.ru b/test/ruby/header_array_nil/config.ru
new file mode 100644
index 00000000..04550c8d
--- /dev/null
+++ b/test/ruby/header_array_nil/config.ru
@@ -0,0 +1,7 @@
+app = Proc.new do |env|
+ ['200', {
+ 'x-array' => [nil],
+ }, []]
+end
+
+run app