Flowdock
method

new

Importance_0
v3.2.3 - Show latest stable - 0 notes - Class: ActionDispatch::TestRequest
new(env = {}) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/testing/test_request.rb, line 14
    def initialize(env = {})
      env = Rails.application.env_config.merge(env) if defined?(Rails.application)
      super(DEFAULT_ENV.merge(env))

      self.host        = 'test.host'
      self.remote_addr = '0.0.0.0'
      self.user_agent  = 'Rails Testing'
    end
Register or log in to add new notes.