Sha256: 7cb6e37e82f00594ce2043e55ea5b7809969dd96442e052b956c5ebb147cfcf8
Contents?: true
Size: 948 Bytes
Versions: 3
Compression:
Stored size: 948 Bytes
Contents
module Petitest class Configuration attr_writer :backtrace_filters attr_writer :color attr_writer :color_scheme attr_writer :output attr_writer :subscribers # @return [Array<String>] def backtrace_filters @backtrace_filters ||= begin path = ::File.expand_path("../..", __FILE__) [-> (line) { line.start_with?(path) }] end end # @return [Boolean] def color @color ||= true end # @return [Hash{Symbol => Symbol}] def color_scheme @color_scheme ||= { detail: :cyan, error: :red, pass: :green, skip: :yellow, } end # @return [IO] def output @output ||= ::STDOUT.tap do |io| io.sync = true end end # @return [Array<Petitest::Subscribers::BaseSubscriber>] def subscribers @subscribers ||= [::Petitest::Subscribers::DocumentReportSubscriber.new] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
petitest-0.3.1 | lib/petitest/configuration.rb |
petitest-0.3.0 | lib/petitest/configuration.rb |
petitest-0.2.1 | lib/petitest/configuration.rb |