Tests: added test for "SCRIPT_NAME" variable in Ruby.

This commit is contained in:
Andrei Zeliankou
2022-05-10 01:53:23 +01:00
parent 0032543fa6
commit 1bffba6d1e
2 changed files with 2 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ app = Proc.new do |env|
'Request-Method' => env['REQUEST_METHOD'],
'Request-Uri' => env['REQUEST_URI'],
'Http-Host' => env['HTTP_HOST'],
'Script-Name' => env['SCRIPT_NAME'],
'Server-Protocol' => env['SERVER_PROTOCOL'],
'Server-Software' => env['SERVER_SOFTWARE'],
'Custom-Header' => env['HTTP_CUSTOM_HEADER'],

View File

@@ -44,6 +44,7 @@ class TestRubyApplication(TestApplicationRuby):
'Request-Method': 'POST',
'Request-Uri': '/',
'Http-Host': 'localhost',
'Script-Name': 'config.ru',
'Server-Protocol': 'HTTP/1.1',
'Custom-Header': 'blah',
'Rack-Version': '13',