Sha256: 3309a29554f4f009924ae4060442ea687b615a8d92bed866c1eacf82b954c104

Contents?: true

Size: 720 Bytes

Versions: 6

Compression:

Stored size: 720 Bytes

Contents

require 'rspec'
require 'mocha/api'
require 'bourne'
require 'cocaine'
require 'timeout'
require 'tempfile'
require 'pry'
require 'thread'

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

6 entries across 6 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/cocaine-0.5.7/spec/spec_helper.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/cocaine-0.5.7/spec/spec_helper.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/cocaine-0.5.7/spec/spec_helper.rb
cocaine-0.5.7 spec/spec_helper.rb
cocaine-0.5.6 spec/spec_helper.rb
cocaine-0.5.5 spec/spec_helper.rb