Sha256: 8c416cff94d6e8bdab4dba81945003a53dd9c0d1a0dc009ec94164a9b131ce56

Contents?: true

Size: 941 Bytes

Versions: 2

Compression:

Stored size: 941 Bytes

Contents

# require 'pry'
require 'paint'
require 'pry'
require 'vcr'
require 'webmock/rspec'
require 'coveralls'
Coveralls.wear!

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

VCR.configure do |c|
  c.cassette_library_dir = "#{File.dirname(__FILE__)}/cassettes"
  c.hook_into :webmock
  c.configure_rspec_metadata!
end

require 'ubi'
include Ubi

FIXTURE_PATH = File.join(File.dirname(__FILE__), 'fixtures')

def load_fixture(name)
  File.read(File.join(FIXTURE_PATH, name))
end

if ENV['CI']
  require 'coveralls'
  Coveralls.wear!
end

RSpec.configure do |config|
  config.order = 'random'
  # config.around(:each) do |example|
  #   t = Time.now
  #   print Paint[example.metadata[:full_description], '#999']
  #   # _, vcr = example.metadata[:full_description].split('VCR ')
  #   # VCR.use_cassette(vcr) { example.run }
  #   puts Paint[" [#{Time.now - t}s]", :black]
  # end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ubi-0.0.8 spec/spec_helper.rb
ubi-0.0.7 spec/spec_helper.rb