Sha256: 5ddc538cf60efca76fd16cfc2077de2663a98d90fb1f374d9addc8ff2c4972a1

Contents?: true

Size: 609 Bytes

Versions: 143

Compression:

Stored size: 609 Bytes

Contents

require 'spec_helper'

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

  before(:each) do
    PureCloud.configure do |c|
      c.host = 'petstore.swagger.io'
      c.base_path = 'v2'
    end
  end

  describe '#base_url' do
    it 'should have the default value' do
      expect(config.base_url).to eq('http://petstore.swagger.io/v2')
    end

    it 'should remove trailing slashes' do
      [nil, '', '/', '//'].each do |base_path|
        config.base_path = base_path
        expect(config.base_url).to eq('http://petstore.swagger.io')
      end
    end
  end
end

Version data entries

143 entries across 143 versions & 1 rubygems

Version Path
purecloudplatformclientv2-3.1.1 spec/configuration_spec.rb
purecloudplatformclientv2-3.1.0 spec/configuration_spec.rb
purecloudplatformclientv2-3.0.0 spec/configuration_spec.rb
purecloudplatformclientv2-2.0.40 spec/configuration_spec.rb
purecloudplatformclientv2-2.0.39 spec/configuration_spec.rb
purecloudplatformclientv2-2.0.38 spec/configuration_spec.rb
purecloudplatformclientv2-2.0.37 spec/configuration_spec.rb
purecloudplatformclientv2-2.0.36 spec/configuration_spec.rb
purecloudplatformclientv2-2.0.35 spec/configuration_spec.rb
purecloudplatformclientv2-2.0.33 spec/configuration_spec.rb
purecloudplatformclientv2-2.0.32 spec/configuration_spec.rb
purecloudplatformclientv2-2.0.30 spec/configuration_spec.rb
purecloudplatformclientv2-2.0.23 spec/configuration_spec.rb
purecloudplatformclientv2-2.0.21 spec/configuration_spec.rb
purecloudplatformclientv2-2.0.18 spec/configuration_spec.rb
purecloudplatformclientv2-2.0.17 spec/configuration_spec.rb
purecloudplatformclientv2-2.0.14 spec/configuration_spec.rb
purecloudplatformclientv2-2.0.13 spec/configuration_spec.rb
purecloudplatformclientv2-2.0.10 spec/configuration_spec.rb
purecloudplatformclientv2-2.0.9 spec/configuration_spec.rb