Sha256: 98f86ab16b8c461af2000449f278bbd523bc140e7d5274e188b76e0c81c5330d

Contents?: true

Size: 830 Bytes

Versions: 1

Compression:

Stored size: 830 Bytes

Contents

ENV['POSTCODE_ANYWHERE_KEY'] ||= 'AA11-AA11-AA11-AA11'

require 'postcode_anywhere/email_validation'

require 'capybara/rspec'
require 'coveralls'
require 'vcr'
require 'pry'

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true

  config.expect_with :rspec do |c|
    c.syntax = :expect
  end

  config.around(:each, :vcr) do |example|
    name = example.metadata[:full_description].downcase.gsub(/[^\w\/]+/, '_')

    VCR.use_cassette(name) { example.call }
  end

  config.order = 'random'
end

VCR.configure do |config|
  config.cassette_library_dir = 'spec/support/fixtures/vcr_cassettes'
  config.hook_into :webmock
  config.filter_sensitive_data('{{Key}}') { ENV['POSTCODE_ANYWHERE_KEY'] }
end

Coveralls.wear!

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
postcode_anywhere-email_validation-0.0.4 spec/spec_helper.rb