class ActionDispatch::TestRequest

def self.create(env = {})

Create a new test request with default +env+ values.
def self.create(env = {})
  env = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
  env["rack.request.cookie_hash"] ||= {}.with_indifferent_access
  new(default_env.merge(env))
end

def self.default_env

def self.default_env
  DEFAULT_ENV
end

def accept=(mime_types)

def accept=(mime_types)
  delete_header("action_dispatch.request.accepts")
  set_header("HTTP_ACCEPT", Array(mime_types).collect(&:to_s).join(","))
end

def action=(action_name)

def action=(action_name)
  path_parameters[:action] = action_name.to_s
end

def host=(host)

def host=(host)
  set_header("HTTP_HOST", host)
end

def if_modified_since=(last_modified)

def if_modified_since=(last_modified)
  set_header("HTTP_IF_MODIFIED_SINCE", last_modified)
end

def if_none_match=(etag)

def if_none_match=(etag)
  set_header("HTTP_IF_NONE_MATCH", etag)
end

def path=(path)

def path=(path)
  set_header("PATH_INFO", path)
end

def port=(number)

def port=(number)
  set_header("SERVER_PORT", number)
end

def remote_addr=(addr)

def remote_addr=(addr)
  set_header("REMOTE_ADDR", addr)
end

def request_method=(method)

def request_method=(method)
  super(method.to_s.upcase)
end

def request_uri=(uri)

def request_uri=(uri)
  set_header("REQUEST_URI", uri)
end

def user_agent=(user_agent)

def user_agent=(user_agent)
  set_header("HTTP_USER_AGENT", user_agent)
end