Sha256: 98bff136e70794e70f4d321ec57010cb8fae86be01b7a132c5d4a635c4724f0b

Contents?: true

Size: 1.01 KB

Versions: 57

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

57 entries across 57 versions & 1 rubygems

Version Path
snaptrade-2.0.28 spec/configuration_spec.rb
snaptrade-2.0.27 spec/configuration_spec.rb
snaptrade-2.0.26 spec/configuration_spec.rb
snaptrade-2.0.25 spec/configuration_spec.rb
snaptrade-2.0.24 spec/configuration_spec.rb
snaptrade-2.0.23 spec/configuration_spec.rb
snaptrade-2.0.22 spec/configuration_spec.rb
snaptrade-2.0.21 spec/configuration_spec.rb
snaptrade-2.0.16 spec/configuration_spec.rb
snaptrade-2.0.15 spec/configuration_spec.rb
snaptrade-2.0.14 spec/configuration_spec.rb
snaptrade-2.0.13 spec/configuration_spec.rb
snaptrade-2.0.12 spec/configuration_spec.rb
snaptrade-2.0.11 spec/configuration_spec.rb
snaptrade-2.0.10 spec/configuration_spec.rb
snaptrade-2.0.9 spec/configuration_spec.rb
snaptrade-2.0.8 spec/configuration_spec.rb