Class: Smartest::Matcher
- Inherits:
-
Object
show all
- Defined in:
- lib/smartest/matchers.rb
Direct Known Subclasses
BeAKindOfMatcher, BeNilMatcher, ChangeMatcher, CompoundMatcher, ContainExactlyMatcher, EndWithMatcher, EqMatcher, IncludeMatcher, MatchMatcher, RaiseErrorMatcher, StartWithMatcher
Instance Method Summary
collapse
Instance Method Details
#and(other_matcher) ⇒ Object
58
59
60
|
# File 'lib/smartest/matchers.rb', line 58
def and(other_matcher)
AndMatcher.new(self, other_matcher)
end
|
#description ⇒ Object
66
67
68
|
# File 'lib/smartest/matchers.rb', line 66
def description
self.class.name || "matcher"
end
|
#or(other_matcher) ⇒ Object
62
63
64
|
# File 'lib/smartest/matchers.rb', line 62
def or(other_matcher)
OrMatcher.new(self, other_matcher)
end
|