Class: Capybara::RSpecMatchers::WrappedElementMatcher
- Defined in:
- lib/capybara/rspec/matchers.rb
Direct Known Subclasses
HaveAllSelectors, HaveAnySelectors, HaveCurrentPath, HaveNoSelectors, HaveSelector, HaveStyle, HaveText, HaveTitle
Instance Attribute Summary
Attributes inherited from Matcher
#failure_message, #failure_message_when_negated
Instance Method Summary collapse
Methods inherited from Matcher
Methods included from Compound
Constructor Details
This class inherits a constructor from Capybara::RSpecMatchers::Matcher
Instance Method Details
#does_not_match?(actual) ⇒ Boolean
57 58 59 60 61 62 |
# File 'lib/capybara/rspec/matchers.rb', line 57 def does_not_match?(actual) element_does_not_match?(wrap(actual)) rescue Capybara::ExpectationNotMet => err @failure_message_when_negated = err. false end |
#matches?(actual) ⇒ Boolean
50 51 52 53 54 55 |
# File 'lib/capybara/rspec/matchers.rb', line 50 def matches?(actual) element_matches?(wrap(actual)) rescue Capybara::ExpectationNotMet => err @failure_message = err. false end |