Method: Capybara::RackTest::Browser#process

Defined in:
lib/capybara/rack_test/browser.rb

#process(method, path, attributes = {}, env = {}) ⇒ Object



74
75
76
77
78
79
80
81
82
# File 'lib/capybara/rack_test/browser.rb', line 74

def process(method, path, attributes = {}, env = {})
  method = method.downcase
  new_uri = build_uri(path)
  @current_scheme, @current_host, @current_port = new_uri.select(:scheme, :host, :port)
  @current_fragment = new_uri.fragment || @current_fragment
  reset_cache!
  @new_visit_request = false
  send(method, new_uri.to_s, attributes, env.merge(options[:headers] || {}))
end