Module: RackTestHelper

Defined in:
lib/macmillan/utils/rspec/rack_test_helper.rb

Instance Method Summary collapse

Instance Method Details

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



8
9
10
# File 'lib/macmillan/utils/rspec/rack_test_helper.rb', line 8

def env_for(url, opts = {})
  Rack::MockRequest.env_for(url, opts)
end

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



4
5
6
# File 'lib/macmillan/utils/rspec/rack_test_helper.rb', line 4

def req_for(url, opts = {})
  Rack::Request.new(env_for(url, opts))
end