Sha256: 35d9765ac769b771cbefdecd7bed7be05fa07309f8fa338ac54109a0bce22386
Contents?: true
Size: 571 Bytes
Versions: 3
Compression:
Stored size: 571 Bytes
Contents
# frozen_string_literal: true require_relative 'base' module Spectus module RequirementLevel # Low requirement level's class. # # @api private # class Low < Base # Evaluate the expectation. # # @return [Result::Fail, Result::Pass] Report if the low expectation # pass or fail. def result(isolation = false) state = sandbox(isolation) if state.valid? || state.exception.class.equal?(::NoMethodError) pass!(state) else fail!(state) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spectus-3.0.9 | lib/spectus/requirement_level/low.rb |
spectus-3.0.8 | lib/spectus/requirement_level/low.rb |
spectus-3.0.7 | lib/spectus/requirement_level/low.rb |