Class: Spectus::RequirementLevel::Must

Inherits:
Base
  • Object
show all
Defined in:
lib/spectus/requirement_level/must.rb

Overview

Must requirement level’s class.

Direct Known Subclasses

May, Should

Instance Attribute Summary

Attributes inherited from Base

#exam, #matcher

Instance Method Summary collapse

Methods inherited from Base

#call, #initialize

Constructor Details

This class inherits a constructor from Spectus::RequirementLevel::Base

Instance Method Details

#pass?Boolean

Evaluate the expectation.

Returns:

  • (Boolean)

    Report if the high expectation pass or fail?



12
13
14
# File 'lib/spectus/requirement_level/must.rb', line 12

def pass?
  exam.valid?
end