Exception: MoreAssay
- Inherits:
-
CompareAssay
- Object
- Exception
- Assertion
- CompareAssay
- MoreAssay
- Defined in:
- lib/assay/more_assay.rb
Overview
Compare assertion is used to test a comparision
made by #>.
Constant Summary
Constants inherited from Assertion
Constants included from Assay::Assertable
Class Method Summary collapse
-
.assert_message(subject, criterion) ⇒ Object
Error message, e.g.
-
.pass?(subject, criterion) ⇒ Boolean
Check assertion using
#>method call.
Methods inherited from Assertion
by_name, by_operator, inherited, #initialize, name_index, operator_index, register, subclasses
Methods included from Assay::Assertable
#[], #assert!, #assert_message, #assertive_name, #assertor, #extract_options, #fail?, #operator, #pass?, #refute!, #refute_message, #standard_message
Methods inherited from Exception
#negative?, raised?, #set_negative
Constructor Details
This class inherits a constructor from Assertion
Class Method Details
.assert_message(subject, criterion) ⇒ Object
Error message, e.g. 5 > 3.
20 21 22 |
# File 'lib/assay/more_assay.rb', line 20 def self.(subject, criterion) (subject, criterion) end |
.pass?(subject, criterion) ⇒ Boolean
Check assertion using #> method call.
13 14 15 |
# File 'lib/assay/more_assay.rb', line 13 def self.pass?(subject, criterion) subject > criterion end |