Sha256: b0290849296b2b762d7dc4ed5883a93b0f23a4cbcfa29501b1c76cfaad37201a

Contents?: true

Size: 1.06 KB

Versions: 46

Compression:

Stored size: 1.06 KB

Contents

=begin
Square Connect API

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

OpenAPI spec version: 2.0

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


=end

require 'spec_helper'

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

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

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
square_connect-2.20190724.1.334 spec/configuration_spec.rb
square_connect-2.20190724.0.331 spec/configuration_spec.rb
square_connect-2.20190724.0.330 spec/configuration_spec.rb
square_connect-2.20190724.0.325 spec/configuration_spec.rb
square_connect-2.20190710.0.321 spec/configuration_spec.rb
square_connect-2.20190612.1.314 spec/configuration_spec.rb
square_connect-2.20190612.0.311 spec/configuration_spec.rb
square_connect-2.20190612.0.309 spec/configuration_spec.rb
square_connect-2.20190508.0.304 spec/configuration_spec.rb
square_connect-2.20190410.1.300 spec/configuration_spec.rb
square_connect-2.20190410.0.296 spec/configuration_spec.rb
square_connect-2.20190327.1.292 spec/configuration_spec.rb
square_connect-2.20190313.1.282 spec/configuration_spec.rb
square_connect-2.20190313.0.278 spec/configuration_spec.rb
square_connect-2.20190213.0.274 spec/configuration_spec.rb
square_connect-2.20181212.0.267 spec/configuration_spec.rb
square_connect-2.20181205.0.263 spec/configuration_spec.rb
square_connect-2.20180918.1.251 spec/configuration_spec.rb
square_connect-2.20180918.0.244 spec/configuration_spec.rb
square_connect-2.20180712.2.237 spec/configuration_spec.rb