Sha256: 0dc808a17ec338443e60a1ade6ac70996370409358b6ca9cd16128976d50bd83

Contents?: true

Size: 532 Bytes

Versions: 2

Compression:

Stored size: 532 Bytes

Contents

module Petitest
  class Configuration
    DEFAULT_COLOR_SCHEME = {
      detail: :cyan,
      error: :red,
      failure: :red,
      pass: :green,
      skip: :yellow,
    }

    # @return [Hash{Symbol => Symbol}]
    def color_scheme
      @color_scheme ||= DEFAULT_COLOR_SCHEME.dup
    end

    # @return [Boolean]
    def colored
      true
    end

    # @return [Array<Petitest::Subscribers::BaseSubscriber>]
    def subscribers
      @subscribers ||= [::Petitest::Subscribers::ProgressReportSubscriber.new]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
petitest-0.1.1 lib/petitest/configuration.rb
petitest-0.1.0 lib/petitest/configuration.rb