Sha256: fb806e74a646022c6f02427979175506c966ff61b5a6d0072a6fb370875159c6

Contents?: true

Size: 740 Bytes

Versions: 2

Compression:

Stored size: 740 Bytes

Contents

require 'rspec'
require 'mocha/api'
require 'bourne'
require 'terrapin'
require 'timeout'
require 'tempfile'
require 'pry'
require 'thread'
require 'pathname'

begin; require 'active_support/logger'; rescue LoadError; end
begin; require 'active_support/buffered_logger'; rescue LoadError; end

Dir[File.dirname(__FILE__) + "/support/**.rb"].each{|support_file| require support_file }

RSpec.configure do |config|
  config.mock_with :mocha
  config.include WithExitstatus
  config.include StubOS
  config.include UnsettingExitstatus
end

def best_logger
  if ActiveSupport.const_defined?("Logger")
    ActiveSupport::Logger
  elsif ActiveSupport.const_defined?("BufferedLogger")
    ActiveSupport::BufferedLogger
  else
    Logger
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
terrapin-0.6.0 spec/spec_helper.rb
terrapin-0.6.0.alpha spec/spec_helper.rb