Class: Spectus::RequirementLevel::Low
- Inherits:
-
Spectus::Requirement
- Object
- Spectus::Requirement
- Spectus::RequirementLevel::Low
- Defined in:
- lib/spectus/requirement_level/low.rb
Overview
Low requirement level.
Instance Method Summary collapse
-
#pass?(&actual) ⇒ Boolean
Evaluate the expectation with the passed block.
Methods inherited from Spectus::Requirement
Constructor Details
This class inherits a constructor from Spectus::Requirement
Instance Method Details
#pass?(&actual) ⇒ Boolean
Evaluate the expectation with the passed block.
11 12 13 14 15 16 17 18 19 |
# File 'lib/spectus/requirement_level/low.rb', line 11 def pass?(&actual) result = sandbox(&actual) if result.exception.class.equal?(::NoMethodError) true else result.pass?(@negate) end end |