Sha256: 6bc595307e33a14b83750cf2f1dd214a3c098ddb3ceae37e1a58fe893f05ed65

Contents?: true

Size: 997 Bytes

Versions: 11

Compression:

Stored size: 997 Bytes

Contents

=begin
#EVE Swagger Interface

#An OpenAPI for EVE Online

OpenAPI spec version: 0.4.6.dev11

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

=end

require 'spec_helper'

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
esi_client-0.8.5.0 spec/configuration_spec.rb
esi_client-0.7.6.2 spec/configuration_spec.rb
esi_client-0.7.6.1 spec/configuration_spec.rb
esi_client-1.4.0 spec/configuration_spec.rb
esi_client-1.3.0 spec/configuration_spec.rb
esi_client-1.2.0 spec/configuration_spec.rb
esi_client-1.1.0 spec/configuration_spec.rb
esi_client-1.0.2 spec/configuration_spec.rb
esi_client-1.0.1 spec/configuration_spec.rb
esi_client-0.4.7 spec/configuration_spec.rb
esi_client-0.4.6 spec/configuration_spec.rb