lib/petitest/configuration.rb in petitest-0.1.1 vs lib/petitest/configuration.rb in petitest-0.1.2

- old
+ new

@@ -7,20 +7,25 @@ pass: :green, skip: :yellow, } # @return [Hash{Symbol => Symbol}] - def color_scheme - @color_scheme ||= DEFAULT_COLOR_SCHEME.dup - end + attr_accessor :color_scheme # @return [Boolean] - def colored - true - end + attr_accessor :color + # @return [IO] + attr_accessor :output + # @return [Array<Petitest::Subscribers::BaseSubscriber>] - def subscribers - @subscribers ||= [::Petitest::Subscribers::ProgressReportSubscriber.new] + attr_accessor :subscribers + + def initialize + @color_scheme = DEFAULT_COLOR_SCHEME.dup + @color = true + @output = ::STDOUT + @output.sync = true + @subscribers = [::Petitest::Subscribers::ProgressReportSubscriber.new] end end end