Class: Spectus::RequirementLevel::High

Inherits:
Spectus::Requirement show all
Defined in:
lib/spectus/requirement_level/high.rb

Overview

High requirement level.

Instance Method Summary collapse

Methods inherited from Spectus::Requirement

#initialize

Constructor Details

This class inherits a constructor from Spectus::Requirement

Instance Method Details

#pass?(&actual) ⇒ Boolean

Evaluate the expectation with the passed block.

Returns:

  • (Boolean)

    report if the expectation is true or false.



11
12
13
# File 'lib/spectus/requirement_level/high.rb', line 11

def pass?(&actual)
  sandbox(&actual).pass?(@negate)
end