Class: Spectus::RequirementLevel::May

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

Overview

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



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

def pass?
  super || exam.exception.is_a?(::NoMethodError)
end