Sha256: f5d85bcb5a0cab76a8f322d7ffa0b0bba916ee19edfbbd9d17badfc8ace187bc

Contents?: true

Size: 771 Bytes

Versions: 37

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"][0]["companyCode"]
  }
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
avatax-22.10.0 spec/spec_helper.rb
avatax-22.9.0 spec/spec_helper.rb
avatax-22.8.0 spec/spec_helper.rb
avatax-22.7.0 spec/spec_helper.rb
avatax-22.6.1 spec/spec_helper.rb
avatax-21.12.0 spec/spec_helper.rb
avatax-21.10.0 spec/spec_helper.rb
avatax-21.9.0 spec/spec_helper.rb
avatax-21.8.0 spec/spec_helper.rb
avatax-21.7.1 spec/spec_helper.rb
avatax-21.6.0 spec/spec_helper.rb
avatax-21.3.1 spec/spec_helper.rb
avatax-21.3.0 spec/spec_helper.rb
avatax-21.1.2 spec/spec_helper.rb
avatax-20.12.1 spec/spec_helper.rb
avatax-20.9.0 spec/spec_helper.rb
avatax-20.7.1 spec/spec_helper.rb
avatax-20.7.0 spec/spec_helper.rb
avatax-20.6.0 spec/spec_helper.rb
avatax-20.5.0 spec/spec_helper.rb