Sha256: 0cbed2ba05fde3bd521a50df08babcfb24a3adb4d8ad72628431876aac858ae1

Contents?: true

Size: 693 Bytes

Versions: 1

Compression:

Stored size: 693 Bytes

Contents

require 'rspec'
require 'howami'
require 'vcr'

RSpec.configure do |config|
  config.color_enabled = true
  config.formatter     = 'documentation'
  # config.treat_symbols_as_metadata_keys_with_true_values = true
end

VCR.configure do |c|
  c.cassette_library_dir = 'spec/cassettes'
  c.hook_into :webmock
  c.configure_rspec_metadata!
  c.default_cassette_options = { :record => :none, :match_requests_on => [:method, :uri] }
  c.filter_sensitive_data('<OAUTH_AUTH_HEADER>') do |interaction|
    interaction.request.headers['Authorization'].first
  end
end

def wipe_credentials!
  cred_store = Howami::Configuration::CREDENTIALS_STORE
  FileUtils.rm cred_store if File.exist? cred_store
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
howami-0.0.1 spec/spec_helper.rb