Class: Katalyst::Kpop::Matchers::Base
- Inherits:
-
RSpec::Rails::Matchers::BaseMatcher
- Object
- RSpec::Rails::Matchers::BaseMatcher
- Katalyst::Kpop::Matchers::Base
- Defined in:
- lib/katalyst/kpop/matchers/base.rb
Direct Known Subclasses
CapybaraMatcher, CapybaraParser, RedirectMatcher, ResponseMatcher, TitleMatcher
Instance Attribute Summary collapse
-
#matched ⇒ Object
readonly
Returns the value of attribute matched.
Instance Method Summary collapse
Instance Attribute Details
#matched ⇒ Object (readonly)
Returns the value of attribute matched.
9 10 11 |
# File 'lib/katalyst/kpop/matchers/base.rb', line 9 def matched @matched end |
Instance Method Details
#matches?(actual) ⇒ Boolean
11 12 13 14 |
# File 'lib/katalyst/kpop/matchers/base.rb', line 11 def matches?(actual) @matched = super @matched.present? end |