Class: Capybara::RSpecMatchers::Matchers::WrappedElementMatcher
- Defined in:
- lib/capybara/rspec/matchers/base.rb
Direct Known Subclasses
CountableWrappedElementMatcher, HaveAllSelectors, HaveAnySelectors, HaveCurrentPath, HaveNoSelectors, HaveTitle, MatchStyle
Instance Attribute Summary
Attributes inherited from Base
#failure_message, #failure_message_when_negated
Instance Method Summary collapse
Methods inherited from Base
Methods included from Compound
Constructor Details
This class inherits a constructor from Capybara::RSpecMatchers::Matchers::Base
Instance Method Details
#does_not_match?(actual, &filter_block) ⇒ Boolean
58 59 60 61 62 63 64 |
# 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
50 51 52 53 54 55 56 |
# 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 |