Sha256: 576d7afdcc93f546fa441dd1ec5dedac64ebe6b9e1e16ffafaad8120c74c9cd1

Contents?: true

Size: 820 Bytes

Versions: 1

Compression:

Stored size: 820 Bytes

Contents

require 'rubygems'
require 'bundler'
begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'beatport'
require 'pp'
require 'log_buddy'
require 'vcr'

VCR.configure do |c|
  c.cassette_library_dir = 'spec/fixtures'
  c.hook_into :fakeweb
  c.allow_http_connections_when_no_cassette = true
end

RSpec.configure do |config|
  # some (optional) config here
end

def silence_stream(stream)
  old_stream = stream.dup
  stream.reopen(RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? 'NUL:' : '/dev/null')
  stream.sync = true
  yield
ensure
  stream.reopen(old_stream)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
beatport-0.1.5 spec/spec_helper.rb