Class: ActionController::TestRequest
- Inherits:
-
AbstractRequest
- Object
- AbstractRequest
- ActionController::TestRequest
- Defined in:
- lib/gettext/rails.rb
Overview
:nodoc:
Defined Under Namespace
Classes: GetTextMockCGI
Instance Method Summary collapse
Instance Method Details
#cgi ⇒ Object
257 258 259 260 261 262 263 264 265 266 267 |
# File 'lib/gettext/rails.rb', line 257 def cgi unless @cgi @cgi = GetTextMockCGI.new("REQUEST_METHOD" => "GET", "QUERY_STRING" => "", "REQUEST_URI" => "/", "HTTP_HOST" => "www.example.com", "SERVER_PORT" => "80", "HTTPS" => "off") end @cgi end |