Class: Spectus::Requirement::Required
- Defined in:
- lib/spectus/requirement/required.rb
Overview
Implementation of MUST/MUST NOT requirements from RFC 2119.
This level represents an absolute requirement - tests at this level must pass without any exceptions or conditions. Unlike SHOULD or MAY levels, there is no flexibility in what constitutes a passing test.
The test passes only when:
-
MUST: The matcher returns true (when negate: false)
-
MUST NOT: The matcher returns false (when negate: true)
Class Method Summary collapse
-
.level ⇒ Symbol
The RFC 2119 keyword for this requirement level.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Spectus::Requirement::Base
Class Method Details
.level ⇒ Symbol
The RFC 2119 keyword for this requirement level.
31 32 33 |
# File 'lib/spectus/requirement/required.rb', line 31 def self.level :MUST end |