Sha256: 42b6d685bf8e7d0721566e95321473fa919f69fff27b562528a63b92391d1353

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

=begin
#Fatture in Cloud API v2 - API Reference

#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.000 businesses in Italy.   The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.

The version of the OpenAPI document: 2.0.18
Contact: info@fattureincloud.it
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0

=end

require 'spec_helper'

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fattureincloud_ruby_sdk-2.0.9 spec/configuration_spec.rb