Class: Spectus::RequirementLevel::Low Private
- Defined in:
- lib/spectus/requirement_level/low.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Low requirement level.
Instance Method Summary collapse
-
#pass?(&actual) ⇒ Boolean
private
Evaluate the expectation with the passed block.
Methods inherited from High
Constructor Details
This class inherits a constructor from Spectus::RequirementLevel::High
Instance Method Details
#pass?(&actual) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Evaluate the expectation with the passed block.
13 14 15 16 17 18 19 |
# File 'lib/spectus/requirement_level/low.rb', line 13 def pass?(&actual) if sandbox(&actual).exception.class.equal?(::NoMethodError) true else super end end |