Sha256: 728b4f433b92f800f51d98c85fab93e2cd42c2195e95d01b536b2cb8ec5fc59c

Contents?: true

Size: 1.01 KB

Versions: 37

Compression:

Stored size: 1.01 KB

Contents

=begin
#SnapTrade

#Connect brokerage accounts to your app for live positions and trading

The version of the OpenAPI document: 1.0.0
Contact: api@snaptrade.com

=end

require 'spec_helper'

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

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

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
snaptrade-2.0.7 spec/configuration_spec.rb
snaptrade-2.0.6 spec/configuration_spec.rb
snaptrade-2.0.5 spec/configuration_spec.rb
snaptrade-2.0.4 spec/configuration_spec.rb
snaptrade-2.0.3 spec/configuration_spec.rb
snaptrade-2.0.2 spec/configuration_spec.rb
snaptrade-2.0.1 spec/configuration_spec.rb
snaptrade-2.0.0 spec/configuration_spec.rb
snaptrade-1.17.13 spec/configuration_spec.rb
snaptrade-1.17.12 spec/configuration_spec.rb
snaptrade-1.17.11 spec/configuration_spec.rb
snaptrade-1.17.10 spec/configuration_spec.rb
snaptrade-1.17.9 spec/configuration_spec.rb
snaptrade-1.17.8 spec/configuration_spec.rb
snaptrade-1.17.7 spec/configuration_spec.rb
snaptrade-1.17.6 spec/configuration_spec.rb
snaptrade-1.17.5 spec/configuration_spec.rb
snaptrade-1.17.4 spec/configuration_spec.rb
snaptrade-1.17.3 spec/configuration_spec.rb
snaptrade-1.17.2 spec/configuration_spec.rb