From defb14f165509648f1bf1527fb4b5dd96ee9e7cc Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Wed, 13 Nov 2019 15:53:56 +0300 Subject: Tests: added Ruby test with constants. --- test/ruby/constants/config.ru | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/ruby/constants/config.ru (limited to 'test/ruby/constants/config.ru') 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 -- cgit