Class: Spectus::RequirementLevel::Medium Private

Inherits:
High
  • Object
show all
Defined in:
lib/spectus/requirement_level/medium.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Medium requirement level.

Direct Known Subclasses

Low

Instance Method Summary collapse

Methods inherited from High

#initialize

Constructor Details

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

Instance Method Details

#pass?(&actual) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Evaluate the expectation with the passed block.

Returns:

  • (Boolean)

    report if the expectation is true or false.



13
14
15
16
17
18
19
# File 'lib/spectus/requirement_level/medium.rb', line 13

def pass?(&actual)
  if super
    true
  else
    sandbox(&actual).exception.nil?
  end
end