class Capybara::RSpecMatchers::HaveNoSelectors
def description
def description "have no selectors" end
def does_not_match?(_actual)
def does_not_match?(_actual) raise ArgumentError, "The have_none_of_selectors matcher does not support use with not_to/should_not" end
def initialize(*args, &filter_block)
def initialize(*args, &filter_block) @args = args @filter_block = filter_block end
def matches?(actual)
def matches?(actual) wrap_matches?(actual) { |el| el.assert_none_of_selectors(*@args, &@filter_block) } end