Class: Capybara::RSpecMatchers::Matchers::WrappedElementMatcher
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Base
|
|
Instance Chain:
|
|
Inherits: |
Capybara::RSpecMatchers::Matchers::Base
|
Defined in: | lib/capybara/rspec/matchers/base.rb |
Class Method Summary
Instance Attribute Summary
Base
- Inherited
Instance Method Summary
- #does_not_match?(actual, &filter_block) ⇒ Boolean
- #matches?(actual, &filter_block) ⇒ Boolean
- #wrap(actual) private
Base
- Inherited
Compound
- Included
Constructor Details
This class inherits a constructor from Capybara::RSpecMatchers::Matchers::Base
Instance Method Details
#does_not_match?(actual, &filter_block) ⇒ Boolean
# File 'lib/capybara/rspec/matchers/base.rb', line 58
def does_not_match?(actual, &filter_block) @filter_block ||= filter_block element_does_not_match?(wrap(actual)) rescue Capybara::ExpectationNotMet => e @failure_message_when_negated = e. false end
#matches?(actual, &filter_block) ⇒ Boolean
# File 'lib/capybara/rspec/matchers/base.rb', line 50
def matches?(actual, &filter_block) @filter_block ||= filter_block element_matches?(wrap(actual)) rescue Capybara::ExpectationNotMet => e @failure_message = e. false end