Class: Spectus::RequirementLevel::Low Private

Inherits:
Medium
  • Object
show all
Defined in:
lib/spectus/requirement_level/low.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.

Low requirement level.

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/low.rb', line 13

def pass?(&actual)
  if sandbox(&actual).exception.class.equal?(::NoMethodError)
    true
  else
    super
  end
end