Sha256: 15f78aef0f8b911268acd913899f75a301db8b93eee5e9ea0084d7a4e054b3cc

Contents?: true

Size: 771 Bytes

Versions: 10

Compression:

Stored size: 771 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"][1]["companyCode"]
  }
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
avatax-18.10.3 spec/spec_helper.rb
avatax-18.9.0 spec/spec_helper.rb
avatax-18.7.1 spec/spec_helper.rb
avatax-18.6.1 spec/spec_helper.rb
avatax-18.5.1 spec/spec_helper.rb
avatax-18.4.1 spec/spec_helper.rb
avatax-18.4.0 spec/spec_helper.rb
avatax-18.3.0 spec/spec_helper.rb
avatax-18.2.0 spec/spec_helper.rb
avatax-18.1.2 spec/spec_helper.rb