Exception: TrueAssay
- Inherits:
-
BooleanAssay
- Object
- Exception
- Assertion
- BooleanAssay
- TrueAssay
- Defined in:
- lib/assay/true_assay.rb
Overview
Constant Summary
Constants inherited from Assertion
Constants included from Assay::Assertable
Class Method Summary collapse
-
.pass?(subject) ⇒ Boolean
Check assertion using ‘#true?` method.
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) ⇒ Boolean
Check assertion using ‘#true?` method.
16 17 18 |
# File 'lib/assay/true_assay.rb', line 16 def self.pass?(subject) subject.true? #TrueClass === subject end |