Sha256: 62f3ea9b7b87599a7d0efa84fb861d6971cf8731a26a0e8d0aa620826d966b60
Contents?: true
Size: 966 Bytes
Versions: 16
Compression:
Stored size: 966 Bytes
Contents
require 'message_helper' describe IB::Messages::Outgoing do context 'Newly instantiated Message' do subject do IB::Messages::Outgoing::RequestAccountData.new( :subscribe => true, :account_code => 'DUH') end it { should be_an IB::Messages::Outgoing::RequestAccountData } its(:message_type) { should == :RequestAccountData } its(:message_id) { should == 6 } its(:data) { should == {:subscribe=>true, :account_code=>"DUH"}} its(:subscribe) { should == true } its(:account_code) { should == 'DUH' } its(:to_human) { should =~ /RequestAccountData/ } it 'has class accessors as well' do subject.class.message_type.should == :RequestAccountData subject.class.message_id.should == 6 subject.class.version.should == 2 end it 'encodes into Array' do subject.encode(:server_version => 60).should == [6, 2, true, "DUH"] end end end # describe IB::Messages:Outgoing
Version data entries
16 entries across 16 versions & 1 rubygems