class Capybara::Queries::CurrentPathQuery
def initialize(expected_path, **options)
def initialize(expected_path, **options) super(options) @expected_path = expected_path @options = { url: !@expected_path.is_a?(Regexp) && !::Addressable::URI.parse(@expected_path || '').hostname.nil?, ignore_query: false }.merge(options) assert_valid_keys end