Sha256: 072b920fb98fd8246b76a7f1bbcaed3dfb0587f4133faf9e61f267dfb2964f42
Contents?: true
Size: 505 Bytes
Versions: 1
Compression:
Stored size: 505 Bytes
Contents
require_relative File.join '..', 'requirement' module Spectus # Contains requirement levels. module RequirementLevel # _Medium_ requirement level. class Medium < 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.pass? true else result.exception.nil? 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/medium.rb |