Sha256: 1663ab91ea781c68abb629af7996eafaedde3f0bbaf75c345ee4ed177a0cc65e

Contents?: true

Size: 829 Bytes

Versions: 5

Compression:

Stored size: 829 Bytes

Contents

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

RSpec.configure do |config|
  config.include WebMock::API
end

def a_delete(path)
  a_request(:delete, AvaTax.endpoint + path)
end

def a_get(path)
  a_request(:get, AvaTax.endpoint + path)
end

def a_post(path)
  a_request(:post, AvaTax.endpoint + path)
end

def a_put(path)
  a_request(:put, AvaTax.endpoint + path)
end

def stub_delete(path)
  stub_request(:delete, AvaTax.endpoint + path)
end

def stub_get(path)
  stub_request(:get, AvaTax.endpoint + path)
end

def stub_post(path)
  stub_request(:post, AvaTax.endpoint + path)
end

def stub_put(path)
  stub_request(:put, AvaTax.endpoint + path)
end

def fixture_path
  File.expand_path("../fixtures", __FILE__)
end

def fixture(file)
  File.new(fixture_path + '/' + file)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
avatax-17.8.1 spec/spec_helper.rb
avatax-17.7.3 spec/spec_helper.rb
avatax-17.7.0 spec/spec_helper.rb
avatax-17.6.0 spec/spec_helper.rb
avatax-17.5.0 spec/spec_helper.rb