Class: Capybara::RSpecMatchers::Matchers::HaveAllSelectors
Instance Attribute Summary
Attributes inherited from Base
#failure_message, #failure_message_when_negated
Instance Method Summary
collapse
#matches?
Methods inherited from Base
#initialize
Methods included from Compound
#and, #and_then, #or
Instance Method Details
#description ⇒ Object
38
39
40
|
# File 'lib/capybara/rspec/matchers/have_selector.rb', line 38
def description
'have all selectors'
end
|
#does_not_match?(_actual) ⇒ Boolean
34
35
36
|
# File 'lib/capybara/rspec/matchers/have_selector.rb', line 34
def does_not_match?(_actual)
raise ArgumentError, 'The have_all_selectors matcher does not support use with not_to/should_not'
end
|
#element_matches?(el) ⇒ Boolean
30
31
32
|
# File 'lib/capybara/rspec/matchers/have_selector.rb', line 30
def element_matches?(el)
el.assert_all_of_selectors(*@args, &@filter_block)
end
|