Sha256: 6f3787977fb06efac9c2f8b7ad417f57ce767fcf5313297cbf41265530e62bbf
Contents?: true
Size: 713 Bytes
Versions: 2
Compression:
Stored size: 713 Bytes
Contents
require File.expand_path('../../lib/avatax', __FILE__) require 'rspec' require 'yaml' AvaTax.configure do |config| begin credentials = YAML.load_file(File.expand_path('../credentials.yaml', __FILE__)) config.endpoint = credentials['endpoint'] config.username = credentials['username'] config.password = credentials['password'] rescue 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
avatax-17.12.0 | spec/spec_helper.rb |
avatax-17.9.1 | spec/spec_helper.rb |