Class: Capybara::RSpecMatchers::Matchers::WrappedElementMatcher
- Defined in:
- lib/isomorfeus/puppetmaster/rspec/matchers/base.rb
Direct Known Subclasses
HaveAllSelectors, HaveAnySelectors, HaveCurrentPath, HaveNoSelectors, HaveSelector, HaveText, 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) ⇒ Boolean
49 50 51 52 53 54 |
# File 'lib/isomorfeus/puppetmaster/rspec/matchers/base.rb', line 49 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
42 43 44 45 46 47 |
# File 'lib/isomorfeus/puppetmaster/rspec/matchers/base.rb', line 42 def matches?(actual) element_matches?(wrap(actual)) rescue Capybara::ExpectationNotMet => err @failure_message = err. false end |