Sha256: 8f00c011e6b73aa496c13aaba10e1b41a6d83f7be8e387c20620dfc8f7b027f7
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 Bytes
Contents
require_relative File.join '..', 'requirement' module Spectus # Contains requirement levels. module RequirementLevel # _Low_ requirement level. class Low < Requirement # Evaluate the expectation with the passed block. # # @return [Boolean] report if the expectation is true or false. def pass?(&actual) result = sandbox(&actual) if result.exception.class.equal?(::NoMethodError) true else result.pass? end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spectus-2.0.3 | lib/spectus/requirement_level/low.rb |