Class: Minicrest::IsGreaterThan
- Inherits:
-
ComparisonMatcher
- Object
- Matcher
- ComparisonMatcher
- Minicrest::IsGreaterThan
- Defined in:
- lib/minicrest/is_greater_than.rb
Overview
Matcher that checks if a value is greater than an expected value.
Works with any objects that support the > operator.
Instance Method Summary collapse
-
#initialize(expected) ⇒ IsGreaterThan
constructor
Creates a new greater-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) ⇒ IsGreaterThan
Creates a new greater-than matcher.
26 27 28 |
# File 'lib/minicrest/is_greater_than.rb', line 26 def initialize(expected) super(expected, :>, 'greater than') end |