Methods
- A
- C
- H
- I
- P
- R
- U
Constants
DEFAULT_ENV | = | Rack::MockRequest.env_for("/", "HTTP_HOST" => "test.host", "REMOTE_ADDR" => "0.0.0.0", "HTTP_USER_AGENT" => "Rails Testing", ) |
Class Public methods
create(env = {})
Link
Create a new test request with default env
values.
# File actionpack/lib/action_dispatch/testing/test_request.rb, line 15 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
Instance Public methods
accept=(mime_types)
Link
action=(action_name)
Link
host=(host)
Link
if_modified_since=(last_modified)
Link
if_none_match=(etag)
Link
path=(path)
Link
port=(number)
Link
remote_addr=(addr)
Link
request_method=(method)
Link
request_uri=(uri)
Link