Class: Capybara::RSpecMatchers::Matchers::HaveAncestor
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
self,
CountableWrappedElementMatcher ,
RSpecMatchers::SpatialSugar ,
RSpecMatchers::CountSugar ,
WrappedElementMatcher ,
Base ,
Compound ,
RSpec::Matchers::Composable
|
|
Inherits: |
Capybara::RSpecMatchers::Matchers::CountableWrappedElementMatcher
|
Defined in: | lib/capybara/rspec/matchers/have_ancestor.rb |
Class Method Summary
Instance Attribute Summary
Base
- Inherited
Instance Method Summary
RSpecMatchers::SpatialSugar
- Included
RSpecMatchers::CountSugar
- Included
WrappedElementMatcher
- Inherited
Base
- Inherited
Compound
- Included
Constructor Details
This class inherits a constructor from Capybara::RSpecMatchers::Matchers::Base
Instance Method Details
#description
[ GitHub ]# File 'lib/capybara/rspec/matchers/have_ancestor.rb', line 17
def description "have ancestor #{query.description}" end
#element_does_not_match?(el) ⇒ Boolean
# File 'lib/capybara/rspec/matchers/have_ancestor.rb', line 13
def element_does_not_match?(el) el.assert_no_ancestor(*@args, **, &@filter_block) end
#element_matches?(el) ⇒ Boolean
# File 'lib/capybara/rspec/matchers/have_ancestor.rb', line 9
def element_matches?(el) el.assert_ancestor(*@args, **, &@filter_block) end
#query
[ GitHub ]# File 'lib/capybara/rspec/matchers/have_ancestor.rb', line 21
def query # @query ||= Capybara::Queries::AncestorQuery.new(*session_query_args, &@filter_block) @query ||= Capybara::Queries::AncestorQuery.new(*session_query_args, **, &@filter_block) end