Sha256: 53aa6e59ec504d39c6dc3606b4cf9352dc9388d8f98c6d72706d425d5e145038

Contents?: true

Size: 1018 Bytes

Versions: 5

Compression:

Stored size: 1018 Bytes

Contents

=begin
#Vantage

#Vantage API

OpenAPI spec version: 1.0.0
Contact: support@vantage.sh
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.4.19

=end

require 'spec_helper'

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

  before(:each) do
    # uncomment below to setup host and base_path
    # require 'URI'
    # uri = URI.parse("https://api.vantage.sh")
    # Vantage.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("https://api.vantage.sh")
    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("https://api.vantage.sh")
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vantage-client-0.0.8 spec/configuration_spec.rb
vantage-client-0.0.7 spec/configuration_spec.rb
vantage-client-0.0.6 spec/configuration_spec.rb
vantage-client-0.0.5 spec/configuration_spec.rb
vantage-client-0.0.1.beta.1 spec/configuration_spec.rb