Sha256: 9dc04f4ed83952926b24c54112d99bda1ca4f6c262d347146faf2185f9e90895
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
require "petitest/texts/base_text" module Petitest module Texts class TestCaseResultCharacterText < ::Petitest::Texts::BaseText # @return [Petitest::TestCase] attr_reader :test_case # @param test_case [Petitest::TestCase] def initialize(test_case:) @test_case = test_case end # @note Override def to_s case when test_case.failed? colorize("F", :error) when test_case.skipped? colorize("*", :skip) else "." end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
petitest-0.2.1 | lib/petitest/texts/test_case_result_character_text.rb |
petitest-0.2.0 | lib/petitest/texts/test_case_result_character_text.rb |