class Capybara::SessionConfig
def default_host=(url)
def default_host=(url) unless url.nil? || url.match?(URI::DEFAULT_PARSER.make_regexp) raise ArgumentError, "Capybara.default_host should be set to a url (http://www.example.com). Attempted to set #{url.inspect}." end @default_host = url end