Class: Capybara::RSpecMatchers::Matchers::HaveAnySelectors
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
66
67
68
|
# File 'lib/capybara/rspec/matchers/have_selector.rb', line 66
def description
'have any selectors'
end
|
#does_not_match?(_actual) ⇒ Boolean
62
63
64
|
# File 'lib/capybara/rspec/matchers/have_selector.rb', line 62
def does_not_match?(_actual)
el.assert_none_of_selectors(*@args, &@filter_block)
end
|
#element_matches?(el) ⇒ Boolean
58
59
60
|
# File 'lib/capybara/rspec/matchers/have_selector.rb', line 58
def element_matches?(el)
el.assert_any_of_selectors(*@args, &@filter_block)
end
|