Sha256: a707478e9099da4d8d8968932ac1e8c497fcb17776ef898b3eb603ec9080e8d2

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

=begin
#Smooch

#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: 1.0.0

Generated by: https://github.com/swagger-api/swagger-codegen.git

=end

require 'spec_helper'

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rainbow-submarine-test-3356-1.2.2 spec/configuration_spec.rb