FakeRequest sets up a default enviroment which can be overridden either by passing and env into initialize or using request[‘HTTP_VAR’] = ‘foo’
env | Environment options that override the defaults. |
req | The request to set as input for Rack. |
# File lib/merb-core/test/helpers/mock_request_helper.rb, line 13 13: def initialize(env = {}, req = StringIO.new) 14: env.environmentize_keys! 15: env['rack.input'] = req 16: @start = Time.now 17: super(DEFAULT_ENV.merge(env)) 18: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.