Sha256: 93c76b2a17415b3846a8500a0bf26ae0f2bf14acf1858ef9d70a231541843e33
Contents?: true
Size: 855 Bytes
Versions: 19
Compression:
Stored size: 855 Bytes
Contents
require File.expand_path('../../lib/avatax', __FILE__) require 'rspec' require 'active_support' 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({ :logger => true, :log_request_and_response_info => true }) companies = client.query_companies RSpec.configure do |config| config.before { @client = client @company_code = companies["value"][0]["companyCode"] } end
Version data entries
19 entries across 19 versions & 1 rubygems