Sha256: f6d097a396cf34ae15bd7b8651158e070d92f2cb83ec5d73acaa87f0aabba701

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

=begin
#Money Forward Kessai API v2

#Money Forward Kessai REST API

The version of the OpenAPI document: 2.6.7
Contact: api.support@mfkessai.co.jp
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.0.1

=end

require 'spec_helper'

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mfk_openapi_ruby_client-1.0.0 spec/configuration_spec.rb