Sha256: 3e4e5fca0acf5c8b6c1b401ea8753dde566f5e38daf5a797f6f49191d19c9d57
Contents?: true
Size: 933 Bytes
Versions: 24
Compression:
Stored size: 933 Bytes
Contents
module Matest class SpecStatus attr_reader :example attr_reader :result def initialize(example, result, description=nil) @example = example @result = result end def location "%s:%d" % example.example_block.source_location end def description example.description end end class SpecPassed < SpecStatus def to_s "." end def name "PASSING" end end class SpecFailed < SpecStatus def to_s "F" end def name "FAILING" end end class SpecSkipped < SpecStatus def to_s "S" end def name "SKIPPED" end end class NotANaturalAssertion < SpecStatus def to_s "N" end def name "NOT A NATURAL ASSERTION" end end class ExceptionRaised < SpecStatus attr_reader :exception def to_s "E" end def name "ERROR" end end end
Version data entries
24 entries across 24 versions & 1 rubygems