Exception: EqualityAssay
- Inherits:
-
EqualAssay
- Object
- Exception
- Assertion
- LikeAssay
- EqualAssay
- EqualityAssay
- Defined in:
- lib/assay/equality_assay.rb
Overview
EqualityAssay defines the assertion for the ‘#eql?`, the strict equality method.
Direct Known Subclasses
Constant Summary
Constants inherited from Assertion
Constants included from Assay::Assertable
Class Method Summary collapse
-
.pass?(subject, criterion) ⇒ Boolean
Check assertion via ‘#eql?` method.
Methods inherited from EqualAssay
Methods inherited from Assertion
by_name, by_operator, inherited, register, subclasses
Methods included from Assay::Assertable
#[], #assert!, #assert_message, #assertive_name, #assertor, #fail?, #operator, #pass?, #refute!, #refute_message
Class Method Details
.pass?(subject, criterion) ⇒ Boolean
Check assertion via ‘#eql?` method.
13 14 15 |
# File 'lib/assay/equality_assay.rb', line 13 def self.pass?(subject, criterion) subject.eql?(criterion) end |