class Capybara::RSpecMatchers::HaveAllSelectors

Public Class Methods

new(*args, &filter_block) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 83
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 96
def description
  "have all selectors"
end
does_not_match?(_actual) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 92
def does_not_match?(_actual)
  raise ArgumentError, "The have_all_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 88
def matches?(actual)
  wrap_matches?(actual) { |el| el.assert_all_of_selectors(*@args, &@filter_block) }
end