Sha256: 8682d6a187dad154d5309a0fdd55baeac01736e42dd90c3f3a1510b89b177f6e
Contents?: true
Size: 579 Bytes
Versions: 7
Compression:
Stored size: 579 Bytes
Contents
require_relative 'base' module Spectus module Result # The class that is responsible for reporting that the expectation is false. class Fail < StandardError include Base # The value of the expectation of the spec. # # @return [Boolean] the spec was false. def result? false end # Identify the state of the result. # # @return [String] the char that identify the state of the result. def to_char if error.nil? 'F' else 'E' end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems