Sha256: c9856be47dc305a3407b7fed75315485baf2e5999a117865b6e1bf43c6c1f7be

Contents?: true

Size: 1.59 KB

Versions: 36

Compression:

Stored size: 1.59 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'
require 'json'
require 'date'

# Unit tests for SnapTrade::Position
describe SnapTrade::Position do
  let(:instance) { SnapTrade::Position.new }

  describe 'test an instance of Position' do
    it 'should create an instance of Position' do
      expect(instance).to be_instance_of(SnapTrade::Position)
    end
  end
  describe 'test attribute "symbol"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "units"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "price"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "open_pnl"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "fractional_units"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "average_purchase_price"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

end

Version data entries

36 entries across 36 versions & 1 rubygems

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