Sha256: a2a658fd109d84a1dcd655bd5c41d75e371156dd9f99b8465c0c252d6c55c66e

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 Bytes

Contents

require_relative File.join '..', 'requirement'

module Spectus
  # Contains requirement levels.
  module RequirementLevel
    # _High_ requirement level.
    class High < Requirement
      # Evaluate the expectation with the passed block.
      #
      # @return [Boolean] report if the expectation is true or false.
      def pass?(&actual)
        sandbox(&actual).pass?(@negate)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spectus-2.0.2 lib/spectus/requirement_level/high.rb