Sha256: bb27fac7173db5bfa8104eb02e661ccc981e41f6651e93a82054e298175b276b

Contents?: true

Size: 525 Bytes

Versions: 4

Compression:

Stored size: 525 Bytes

Contents

# frozen_string_literal: true

require_relative 'base'

module Spectus
  module RequirementLevel
    # High requirement level's class.
    #
    # @api private
    #
    class High < Base
      # Evaluate the expectation.
      #
      # @return [Result::Fail, Result::Pass] Report if the high expectation
      #   pass or fail.
      def result(isolation = false)
        state = sandbox(isolation)

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spectus-3.0.10 lib/spectus/requirement_level/high.rb
spectus-3.0.9 lib/spectus/requirement_level/high.rb
spectus-3.0.8 lib/spectus/requirement_level/high.rb
spectus-3.0.7 lib/spectus/requirement_level/high.rb