Sha256: dc5688fc67abed202f3556b63069e3e47d233fdd271e63d5f01ab1d88f47e6de

Contents?: true

Size: 531 Bytes

Versions: 2

Compression:

Stored size: 531 Bytes

Contents

# encoding: utf-8
require 'vcr'
require 'webmock'
require 'coveralls'
Coveralls.wear!

def file_fixture(filename)
  open(File.join(File.dirname(__FILE__), 'fixtures', "#{filename.to_s}")).read
end
filename = File.join(File.dirname(__FILE__), 'support', '**', '*.rb')
filename = File.expand_path(filename)
Dir[filename].each { |f| require f }

VCR.configure do |c|
  c.cassette_library_dir = 'spec/fixtures/cassettes'
  c.hook_into :webmock # or :fakeweb
  c.ignore_request { |request| URI(request.uri).host =~ /127\.0\.0\.1/ }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
BtSync-0.6.2 spec/spec_helper.rb
BtSync-0.6.1 spec/spec_helper.rb