Class: Minicrest::IsLessThan
- Inherits:
-
ComparisonMatcher
- Object
- Matcher
- ComparisonMatcher
- Minicrest::IsLessThan
- Defined in:
- lib/minicrest/is_less_than.rb
Overview
Matcher that checks if a value is less than an expected value.
Works with any objects that support the < operator.
Instance Method Summary collapse
-
#initialize(expected) ⇒ IsLessThan
constructor
Creates a new less-than matcher.
Methods inherited from ComparisonMatcher
#description, #failure_message, #matches?, #negated_failure_message
Methods inherited from Matcher
#&, #description, #failure_message, #matches?, #negated_failure_message, #|
Constructor Details
#initialize(expected) ⇒ IsLessThan
Creates a new less-than matcher.
26 27 28 |
# File 'lib/minicrest/is_less_than.rb', line 26 def initialize(expected) super(expected, :<, 'less than') end |