Exception: EmptyAssay
- Inherits:
-
IncludeAssay
- Object
- Exception
- Assertion
- IncludeAssay
- EmptyAssay
- Defined in:
- lib/assay/empty_assay.rb
Overview
Empty assertion tests an object with ‘#empty?` method.
Constant Summary
Constants inherited from Assertion
Constants included from Assay::Assertable
Class Method Summary collapse
-
.pass?(subject) ⇒ Boolean
Check assertion with ‘#empty?`.
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 with ‘#empty?`.
12 13 14 |
# File 'lib/assay/empty_assay.rb', line 12 def self.pass?(subject) subject.empty? end |