Sha256: 338d95878a0eff89884870637be4f935404e1637d919e306dbfad0b2cadc21ff

Contents?: true

Size: 1.07 KB

Versions: 8

Compression:

Stored size: 1.07 KB

Contents

=begin
#ApproveAPISwagger

#The simple API to request a user's approval on anything via email + sms.

OpenAPI spec version: 1.0.0
Contact: dev@approveapi.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.0.0-SNAPSHOT

=end

require 'spec_helper'

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

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

Version data entries

8 entries across 7 versions & 2 rubygems

Version Path
approveapi-1.0.8 vendor/bundle/ruby/2.6.0/gems/approveapi_swagger-1.0.1/spec/configuration_spec.rb
approveapi-1.0.8 vendor/bundle/ruby/2.6.0/gems/approveapi_swagger-1.0.6/spec/configuration_spec.rb
approveapi_swagger-1.0.6 spec/configuration_spec.rb
approveapi_swagger-1.0.3 spec/configuration_spec.rb
approveapi_swagger-1.0.2 spec/configuration_spec.rb
approveapi-1.0.5 vendor/bundle/ruby/2.6.0/gems/approveapi_swagger-1.0.1/spec/configuration_spec.rb
approveapi_swagger-1.0.1 spec/configuration_spec.rb
approveapi_swagger-1.0.0 spec/configuration_spec.rb