Sha256: de7e9311eaba5362331e726871218a357034331e31103328440ef4c165d80db2

Contents?: true

Size: 1.68 KB

Versions: 6

Compression:

Stored size: 1.68 KB

Contents

=begin
#Talon.One API

#Use the Talon.One API to integrate with your application and to manage applications and campaigns:  - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns.  ## Determining the base URL of the endpoints  The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` 

The version of the OpenAPI document: 

Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.3.1

=end

require 'spec_helper'

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
talon_one-7.0.0 spec/configuration_spec.rb
talon_one-6.0.0 spec/configuration_spec.rb
talon_one-5.0.0 spec/configuration_spec.rb
talon_one-3.0.2 spec/configuration_spec.rb
talon_one-3.0.1 spec/configuration_spec.rb
talon_one-3.0.0 spec/configuration_spec.rb