Class: ActionController::TestRequest
- Inherits:
-
AbstractRequest
- Object
- AbstractRequest
- ActionController::TestRequest
- Defined in:
- lib/locale_rails/action_controller/test_process.rb
Overview
for Rails-2.2.x or earlier.
Defined Under Namespace
Classes: LocaleMockCGI
Instance Method Summary collapse
Instance Method Details
#cgi ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/locale_rails/action_controller/test_process.rb', line 31 def cgi unless @cgi @cgi = LocaleMockCGI.new("REQUEST_METHOD" => "GET", "QUERY_STRING" => "", "REQUEST_URI" => "/", "HTTP_HOST" => "www.example.com", "SERVER_PORT" => "80", "HTTPS" => "off") end @cgi end |