Method: Flatrack#mock_env_for

Defined in:
lib/flatrack.rb

#mock_env_for(url, opts = {}) ⇒ Object

This is for testing



122
123
124
125
# File 'lib/flatrack.rb', line 122

def mock_env_for(url, opts={})
  env = Rack::MockRequest.env_for url, opts
  env.merge! env_extensions
end