Sha256: e4a061b0013017a04f7420d9cc499d1ca0ed64208f6ffc6e5a89b9dc35c37d50

Contents?: true

Size: 922 Bytes

Versions: 1

Compression:

Stored size: 922 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
Bundler.setup
require 'simplecov'
SimpleCov.start do
  add_filter '/spec'
end
# SimpleCov.minimum_coverage(100)

require 'dotenv/load'
require 'usps/imis'

ENV['TESTING'] = 'true'

RSpec.configure do |config|
  # Enable flags like --only-failures and --next-failure
  config.example_status_persistence_file_path = 'tmp/.rspec_status'

  # Disable RSpec exposing methods globally on `Module` and `main`
  config.disable_monkey_patching!

  config.expose_dsl_globally = true

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

  config.before(:suite) do
    Usps::Imis.configure do |imis_config|
      imis_config.environment = :development
      imis_config.imis_id_query_name = ENV.fetch('IMIS_ID_QUERY_NAME', '')

      imis_config.username = ENV.fetch('IMIS_USERNAME', '')
      imis_config.password = ENV.fetch('IMIS_PASSWORD', '')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
usps-imis-api-0.3.0 spec/spec_helper.rb