Class: Spectus::RequirementLevel::High Private

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

High requirement level’s class.

API:

  • private

Instance Attribute Summary

Attributes inherited from Base

#challenges, #matcher, #subject

Instance Method Summary collapse

Methods inherited from Base

#initialize, #negate?

Constructor Details

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

Instance Method Details

#result(isolation = false) ⇒ Result::Fail, Result::Pass

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.

Returns:

  • Report if the high expectation pass or fail.

API:

  • private



14
15
16
17
18
19
20
21
22
# File 'lib/spectus/requirement_level/high.rb', line 14

def result(isolation = false)
  state = sandbox(isolation)

  if state.valid?
    pass!(state)
  else
    fail!(state)
  end
end