class Capybara::RackTest::Browser

def submit(method, path, attributes)

def submit(method, path, attributes)
  path = request_path if path.nil? || path.empty?
  process_and_follow_redirects(method, path, attributes, 'HTTP_REFERER' => current_url)
end