Sha256: 93c54d27b878c3f4cd822e7e2dc6383579073893b0eb1361e42375d974bfc95d
Contents?: true
Size: 476 Bytes
Versions: 2
Compression:
Stored size: 476 Bytes
Contents
require_relative 'medium' module Spectus # Contains requirement levels. # module RequirementLevel # _Low_ requirement level. # class Low < Medium # Evaluate the expectation with the passed block. # # @return [Boolean] report if the expectation is true or false. def pass?(&actual) if sandbox(&actual).exception.class.equal?(::NoMethodError) true else super end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spectus-2.0.1 | lib/spectus/requirement_level/low.rb |
spectus-2.0.0 | lib/spectus/requirement_level/low.rb |