Sha256: a71f12a7acbc82d33d72a78b55bb5118fe18690b8cd825c76401eb5f3c3badf0

Contents?: true

Size: 877 Bytes

Versions: 5

Compression:

Stored size: 877 Bytes

Contents

require 'bundler/setup'
require 'webmock/rspec'
require 'vcr'
require 'awesome_print'
require 'simplecov'

if ENV['CIRCLE_ARTIFACTS']
  dir = File.join(ENV['CIRCLE_ARTIFACTS'], "coverage")
  SimpleCov.coverage_dir(dir)
end

SimpleCov.start do
  add_filter '/spec/'
end

require_relative '../lib/lifen_fhir.rb'

VCR.configuration.default_cassette_options[:match_requests_on] = [:method, :uri, :body]

VCR.configure do |c|
  c.cassette_library_dir = 'spec/cassettes'
  c.hook_into :webmock
  c.allow_http_connections_when_no_cassette = false
  c.before_record do |i|
    i.response.body.force_encoding('UTF-8')
  end
end

RSpec.configure do |c|
  c.before(:each) do
    LifenFhir.configure do |config|
      config.site = "https://develop.lifen.fr/"
      config.application_access_token = "valid_application_access_token"
      config.logger = Logger.new(nil)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lifen_fhir-0.7.1 spec/spec_helper.rb
lifen_fhir-0.7.0 spec/spec_helper.rb
lifen_fhir-0.6.1 spec/spec_helper.rb
lifen_fhir-0.6.0 spec/spec_helper.rb
lifen_fhir-0.5.0 spec/spec_helper.rb