Tests: added test for "SCRIPT_NAME" variable in Ruby.
This commit is contained in:
@@ -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'],
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user