Sha256: d2c54f56bee512db362311ead7d87d0e199b7affd1728c068932abb2b126d2b7
Contents?: true
Size: 579 Bytes
Versions: 2
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spectus-2.5.0 | lib/spectus/result/fail.rb |
spectus-2.4.0 | lib/spectus/result/fail.rb |