Sha256: 4b388db8e29f557db2f7595a7f3dafa4c94f1c078eaadb30c81a96cc7d02c8c7
Contents?: true
Size: 1.09 KB
Versions: 4
Compression:
Stored size: 1.09 KB
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 'rspec/its' require 'beatport' require 'pp' require 'log_buddy' require 'vcr' require 'config' I18n.enforce_available_locales = false VCR.configure do |c| c.cassette_library_dir = 'spec/fixtures' c.hook_into :webmock c.allow_http_connections_when_no_cassette = false c.default_cassette_options = { :allow_playback_repeats => true, :record => :new_episodes, :re_record_interval => 604800 } end RSpec.configure do |config| config.expect_with :rspec do |c| c.syntax = [:should, :expect] end # 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
beatport-0.4.0 | spec/spec_helper.rb |
beatport-0.3.0 | spec/spec_helper.rb |
beatport-0.2.3 | spec/spec_helper.rb |
beatport-0.2.2 | spec/spec_helper.rb |