class Capybara::RSpecMatchers::HaveNoSelectors

Public Class Methods

new(*args, &filter_block) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 102
def initialize(*args, &filter_block)
  @args = args
  @filter_block = filter_block
end

Public Instance Methods

description() click to toggle source
# File lib/capybara/rspec/matchers.rb, line 115
def description
  "have no selectors"
end
does_not_match?(_actual) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 111
def does_not_match?(_actual)
  raise ArgumentError, "The have_none_of_selectors matcher does not support use with not_to/should_not"
end
matches?(actual) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 107
def matches?(actual)
  wrap_matches?(actual) { |el| el.assert_none_of_selectors(*@args, &@filter_block) }
end