Class: Spectus::RequirementLevel::Should

Inherits:
Must
  • Object
show all
Defined in:
lib/spectus/requirement_level/should.rb

Overview

Should requirement level’s class.

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 medium expectation pass or fail?



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

def pass?
  super || exam.exception.nil?
end