Sha256: a5d093ca5ea98910e678fe19b75ceb37cc3233777d0ff402211c6e6202863861

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

=begin
#Avalara Shipping Verification only

#API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations.  This API is currently in beta. 

SDK Version : 2.4.6


=end

require 'spec_helper'

describe AvalaraSdk::Configuration do
  let(:config) { AvalaraSdk::Configuration.default }

  before(:each) do
    # uncomment below to setup host and base_path
    # require 'URI'
    # uri = URI.parse("http://localhost")
    # AvalaraSdk.configure do |c|
    #   c.host = uri.host
    #   c.base_path = uri.path
    # end
  end

  describe '#base_url' do
    it 'should have the default value' do
      # uncomment below to test default value of the base path
      # expect(config.base_url).to eq("http://localhost")
    end

    it 'should remove trailing slashes' do
      [nil, '', '/', '//'].each do |base_path|
        config.base_path = base_path
        # uncomment below to test trailing slashes
        # expect(config.base_url).to eq("http://localhost")
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
avalara_sdk-24.12.2 spec/configuration_spec.rb
avalara_sdk-24.12.1 spec/configuration_spec.rb
avalara_sdk-24.12.0 spec/configuration_spec.rb
avalara_sdk-24.2.29 spec/configuration_spec.rb