class Capybara::RSpecMatchers::Matchers::HaveAncestor

def description

def description
  "have ancestor #{query.description}"
end

def element_does_not_match?(el)

def element_does_not_match?(el)
  el.assert_no_ancestor(*@args, **session_query_options, &@filter_block)
end

def element_matches?(el)

def element_matches?(el)
  el.assert_ancestor(*@args, **session_query_options, &@filter_block)
end

def query

def query
  # @query ||= Capybara::Queries::AncestorQuery.new(*session_query_args, &@filter_block)
  @query ||= Capybara::Queries::AncestorQuery.new(*session_query_args, **session_query_options, &@filter_block)
end