Sha256: d98f63269cb856ff68c1d94b846d0c22c6ccd67dcf27d4175b7f0fd92102dcd1

Contents?: true

Size: 679 Bytes

Versions: 3

Compression:

Stored size: 679 Bytes

Contents

require_relative 'spec_helpers/fake_capture3'

require 'ostruct'
require 'fakefs/safe'
require 'wright/logger'

begin
  require 'simplecov'
  if ENV['COVERAGE']
    SimpleCov.start do
      add_filter '/spec/'
      add_filter '/vendor/'
      add_filter '/.bundle/'
    end
  end
end

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.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

3 entries across 3 versions & 1 rubygems

Version Path
wright-0.1.2 spec/spec_helper.rb
wright-0.1.1 spec/spec_helper.rb
wright-0.1.0 spec/spec_helper.rb