Sha256: 8031f67a80b1c811b67f54669360cea03518782bea9cc59ce808f77511fe64d7

Contents?: true

Size: 628 Bytes

Versions: 9

Compression:

Stored size: 628 Bytes

Contents

require_relative 'spec_helpers/fake_capture3'
require_relative 'spec_helpers/test_coverage'

require 'ostruct'
require 'fakefs/safe'

measure_coverage if coverage?

require 'wright/logger'

module Wright
  # extend Wright::Config to pass on clear for tests
  class Config
    class << self
      attr_accessor :config_hash
    end
  end
end

def reset_logger(log_level = Wright::Logger::DEBUG)
  Wright::Config[:log] = { colorize: false }
  Wright.log = Wright::Logger.new
  Wright.log.formatter = Wright::Logger::Formatter.new
  Wright.log.level = log_level
end

reset_logger(Wright::Logger::FATAL)

require 'minitest/autorun'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wright-0.4.4 spec/spec_helper.rb
wright-0.4.3 spec/spec_helper.rb
wright-0.4.2 spec/spec_helper.rb
wright-0.4.1 spec/spec_helper.rb
wright-0.4.0 spec/spec_helper.rb
wright-0.3.2 spec/spec_helper.rb
wright-0.3.1 spec/spec_helper.rb
wright-0.3.0 spec/spec_helper.rb
wright-0.2.0 spec/spec_helper.rb