Sha256: 4063244c22ecf1681b52871a03c2060e910e96243a5ae57dc53104ce99ee7bd6

Contents?: true

Size: 807 Bytes

Versions: 3

Compression:

Stored size: 807 Bytes

Contents

require 'message_helper'

describe IB::Messages do

  context 'Normal message exchange at any connection', :connected => true do

    before(:all) do
      connect_and_receive :NextValidID, :OpenOrderEnd, :Alert
      wait_for(2) { not @received[:OpenOrderEnd].empty? }
    end

    after(:all) { close_connection }

    it 'receives :NextValidID message' do
      @received[:NextValidID].should_not be_empty
    end

    it 'receives :OpenOrderEnd message' do
      @received[:OpenOrderEnd].should_not be_empty
    end

    it 'logs connection notification' do
      should_log /Connected to server, version: 53, connection time/
    end

    it 'logs next valid order id' do
      should_log /Got next valid order id/
    end

  end # Normal message exchange at any connection
end # describe IB::Messages

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ib-ruby-0.5.18 spec/ib-ruby/messages/just_connect_spec.rb
ib-ruby-0.5.17 spec/ib-ruby/messages/just_connect_spec.rb
ib-ruby-0.5.16 spec/ib-ruby/messages/just_connect_spec.rb