Sha256: 2cb583dbc515b9d667c5967ecfa0b6a06796d8fb77632ac68f95f6556ae4a017
Contents?: true
Size: 524 Bytes
Versions: 38
Compression:
Stored size: 524 Bytes
Contents
require 'capybara' module Capybara::Mechanize class << self # Host that should be considered local (includes default_host) def local_hosts @local_hosts ||= begin default_host = URI.parse(Capybara.default_host || "").host || Capybara.default_host [default_host].compact end end def local_hosts=(hosts) @local_hosts = hosts end end end require 'capybara/mechanize/driver' Capybara.register_driver :mechanize do |app| Capybara::Mechanize::Driver.new(app) end
Version data entries
38 entries across 38 versions & 5 rubygems