summaryrefslogtreecommitdiffhomepage
path: root/test/ruby/constants/config.ru
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-11-13 15:53:56 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-11-13 15:53:56 +0300
commitdefb14f165509648f1bf1527fb4b5dd96ee9e7cc (patch)
tree52e054e63e9a873d93058677493487d1ca360938 /test/ruby/constants/config.ru
parentbdd96bc9ed7495199b2c826e03c8d65c7588da9d (diff)
downloadunit-defb14f165509648f1bf1527fb4b5dd96ee9e7cc.tar.gz
unit-defb14f165509648f1bf1527fb4b5dd96ee9e7cc.tar.bz2
Tests: added Ruby test with constants.
Diffstat (limited to '')
-rw-r--r--test/ruby/constants/config.ru15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/ruby/constants/config.ru b/test/ruby/constants/config.ru
new file mode 100644
index 00000000..e0951bf4
--- /dev/null
+++ b/test/ruby/constants/config.ru
@@ -0,0 +1,15 @@
+app = Proc.new do |env|
+ ['200', {
+ 'X-Copyright' => RUBY_COPYRIGHT,
+ 'X-Description' => RUBY_DESCRIPTION,
+ 'X-Engine' => RUBY_ENGINE,
+ 'X-Engine-Version' => RUBY_ENGINE_VERSION,
+ 'X-Patchlevel' => RUBY_PATCHLEVEL.to_s,
+ 'X-Platform' => RUBY_PLATFORM,
+ 'X-Release-Date' => RUBY_RELEASE_DATE,
+ 'X-Revision' => RUBY_REVISION.to_s,
+ 'X-Version' => RUBY_VERSION,
+ }, []]
+end
+
+run app