Sha256: f0e6d9864ba980384c9a6113d6e29f448685ceec0d33a31cc549384963709d38

Contents?: true

Size: 798 Bytes

Versions: 4

Compression:

Stored size: 798 Bytes

Contents

require File.expand_path('../../lib/avatax', __FILE__)
require 'rspec'
require 'yaml'


AvaTax.configure do |config|
  if File.exist?(File.expand_path('../credentials.yaml', __FILE__))
    credentials = YAML.load_file(File.expand_path('../credentials.yaml', __FILE__))
    config.endpoint = credentials['endpoint']
    config.username = credentials['username']
    config.password = credentials['password']
  else
    config.endpoint = 'https://sandbox-rest.avatax.com'
    config.username = ENV['SANDBOX_USERNAME']
    config.password = ENV['SANDBOX_PASSWORD']
  end
end

client = AvaTax::Client.new()
companies = client.query_companies

RSpec.configure do |config|
  config.before {
    @client = client
    @company_code = companies["value"][0]["companyCode"]
  }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
avatax-22.5.0 spec/spec_helper.rb
avatax-22.3.0 spec/spec_helper.rb
avatax-22.2.1 spec/spec_helper.rb
avatax-22.2.0 spec/spec_helper.rb