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.

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:



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

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

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