Class: Capybara::RSpecMatchers::MatchSelector
Instance Attribute Summary
Attributes inherited from Matcher
#failure_message, #failure_message_when_negated
Instance Method Summary
collapse
#initialize
Methods inherited from Matcher
#wrap
Methods included from Compound
#and, #and_then, #or
Instance Method Details
#description ⇒ Object
128
129
130
|
# File 'lib/capybara/rspec/matchers.rb', line 128
def description
"match #{query.description}"
end
|
#does_not_match?(actual) ⇒ Boolean
124
125
126
|
# File 'lib/capybara/rspec/matchers.rb', line 124
def does_not_match?(actual)
wrap_does_not_match?(actual) { |el| el.assert_not_matches_selector(*@args, &@filter_block) }
end
|
#matches?(actual) ⇒ Boolean
120
121
122
|
# File 'lib/capybara/rspec/matchers.rb', line 120
def matches?(actual)
wrap_matches?(actual) { |el| el.assert_matches_selector(*@args, &@filter_block) }
end
|
#query ⇒ Object
132
133
134
|
# File 'lib/capybara/rspec/matchers.rb', line 132
def query
@query ||= Capybara::Queries::MatchQuery.new(*session_query_args, &@filter_block)
end
|