Sha256: a46746b4be1f1b51ccc7f0a66ecd447bb6b58ab45719ac007718cc9537fed80f
Contents?: true
Size: 581 Bytes
Versions: 4
Compression:
Stored size: 581 Bytes
Contents
require_relative 'base' module Spectus module Result # The class that is responsible for reporting that the expectation is true. class Pass include Base attr_reader :message # The value of the expectation of the spec. # # @return [Boolean] the spec was true. def result? true end # Identify the state of the result. # # @return [String] the char that identify the state of the result. def to_char if got '.' else 'I' end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
spectus-2.1.3 | lib/spectus/result/pass.rb |
spectus-2.1.2 | lib/spectus/result/pass.rb |
spectus-2.1.1 | lib/spectus/result/pass.rb |
spectus-2.1.0 | lib/spectus/result/pass.rb |