Sha256: 98bff136e70794e70f4d321ec57010cb8fae86be01b7a132c5d4a635c4724f0b

Contents?: true

Size: 1.01 KB

Versions: 56

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

56 entries across 56 versions & 1 rubygems

Version Path
snaptrade-2.0.72 spec/configuration_spec.rb
snaptrade-2.0.71 spec/configuration_spec.rb
snaptrade-2.0.70 spec/configuration_spec.rb
snaptrade-2.0.69 spec/configuration_spec.rb
snaptrade-2.0.68 spec/configuration_spec.rb
snaptrade-2.0.67 spec/configuration_spec.rb
snaptrade-2.0.66 spec/configuration_spec.rb
snaptrade-2.0.64 spec/configuration_spec.rb
snaptrade-2.0.59 spec/configuration_spec.rb
snaptrade-2.0.58 spec/configuration_spec.rb
snaptrade-2.0.57 spec/configuration_spec.rb
snaptrade-2.0.56 spec/configuration_spec.rb
snaptrade-2.0.55 spec/configuration_spec.rb
snaptrade-2.0.54 spec/configuration_spec.rb
snaptrade-2.0.53 spec/configuration_spec.rb
snaptrade-2.0.52 spec/configuration_spec.rb
snaptrade-2.0.51 spec/configuration_spec.rb
snaptrade-2.0.50 spec/configuration_spec.rb
snaptrade-2.0.49 spec/configuration_spec.rb
snaptrade-2.0.48 spec/configuration_spec.rb