Sha256: ef1480acbcfae813194c07303e07460f07447691d898df0daa9cb701c885cc86
Contents?: true
Size: 466 Bytes
Versions: 6
Compression:
Stored size: 466 Bytes
Contents
require "petitest/texts/base_text" module Petitest module Texts class FilteredBacktraceText < ::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 colorize(test_case.filtered_backtrace.join("\n").gsub(/^/, "# "), :detail) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems