Sha256: d3cad5026f767b4f167e970edbd274e65e6d63c0bd3bf3cc1261c296b16e6d9f

Contents?: true

Size: 751 Bytes

Versions: 4

Compression:

Stored size: 751 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'webmock/rspec'
require 'fabrication'
require 'vcr'
require 'timecop'
require 'poms'

WebMock.disable_net_connect!

VCR.configure do |config|
  config.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
  config.hook_into :webmock
end

RSpec.configure do |config|
  config.around(:each) do |example|
    options = example.metadata[:vcr] || {}
    if options[:record] == :skip
      VCR.turned_off(&example)
    else
      name = example.metadata[:full_description]
             .split(/\s+/, 2).join('/')
             .underscore.gsub(%r{[^\w\/]+}, '_')
      VCR.use_cassette(name, options, &example)
    end
  end

  config.before(:suite) do
    Timecop.freeze Time.utc(2015, 10, 6, 12)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
poms-1.2.2 spec/spec_helper.rb
poms-1.2.1 spec/spec_helper.rb
poms-1.2.0 spec/spec_helper.rb
poms-1.1.0 spec/spec_helper.rb