Skip to content

Commit

Permalink
Broken specs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
arvicco committed Oct 21, 2011
1 parent 98ba5c6 commit 05dd8ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 61 deletions.
60 changes: 4 additions & 56 deletions HISTORY
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
== 0.1 / 2006-11-12

* Initial version - Paul Legato

== 0.2 / 2007-02-14

* Alpha Release - Paul Legato

== 0.3 / 2009-06-18

* Gem packaging

== 0.4 / 2011-09-04
* Repackaging with Bundler and Gemfile

== 0.4.1 / 2011-09-05

* Bones removed

== 0.4.2 / 2011-09-05

* Removing old tests
* Repackaging with Bundler and Gemfile

== 0.4.3 / 2011-09-05

Expand All @@ -26,10 +22,6 @@

* IB references and Java examples added

== 0.4.5 / 2011-09-06

* Sample scripts updated

== 0.4.6 / 2011-09-07

* CSV Downloader Java examples added
Expand All @@ -38,50 +30,10 @@

* Datatypes turned into Models

== 0.4.8 / 2011-09-12

* IB::Messages::Outgoing code compacted using macros

== 0.4.9 / 2011-09-15

* IB::Messages::Incoming rewritten

== 0.4.10 / 2011-09-16

* Market data request now working

== 0.4.11 / 2011-09-17

* New scripts working

== 0.4.12 / 2011-09-18

* historic_data script now functional

== 0.4.13 / 2011-09-18

* time_and_sales script now working

== 0.4.14 / 2011-09-18

* DOM script added

== 0.4.15 / 2011-09-18

* Messages like RTBars etc implemented

== 0.4.16 / 2011-09-19

* Execution Model added

== 0.4.17 / 2011-09-19

* option_data script now working

== 0.4.18 / 2011-09-19

* IB::Connection#subscribe syntax changed

== 0.4.19 / 2011-09-19

* All IB messages implemented
Expand All @@ -90,10 +42,6 @@

* IB::Connection#subscribe now accepts Symbols with message names

== 0.4.21 / 2011-09-19

* README extended

== 0.4.22 / 2011-09-20

* Fixed minor buglets
10 changes: 5 additions & 5 deletions spec/ib-ruby/models/contract_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

let(:properties) do
{:symbol => "TEST",
:sec_type => IB::Models::Contract::SECURITY_TYPES[:stock],
:sec_type => IB::SECURITY_TYPES[:stock],
:expiry => '200609',
:strike => 1234,
:right => "put",
Expand Down Expand Up @@ -86,7 +86,7 @@
expect {
x = IB::Models::Contract.new
x.symbol = "TEST"
x.sec_type = IB::Models::Contract::SECURITY_TYPES[:stock]
x.sec_type = IB::SECURITY_TYPES[:stock]
x.expiry = 200609
x.strike = 1234
x.right = "put"
Expand Down Expand Up @@ -121,7 +121,7 @@
end

it 'accepts pre-determined security types' do
IB::Models::Contract::SECURITY_TYPES.values.each do |type|
IB::SECURITY_TYPES.values.each do |type|
expect {
x = IB::Models::Contract.new({:sec_type => type})
}.to_not raise_error
Expand Down Expand Up @@ -195,12 +195,12 @@

it "serializes long" do
subject.serialize(:long).should ==
["TEST", IB::Models::Contract::SECURITY_TYPES[:stock], "200609", 1234, "PUT", 123, "SMART", nil, "USD", "baz"]
["TEST", IB::SECURITY_TYPES[:stock], "200609", 1234, "PUT", 123, "SMART", nil, "USD", "baz"]
end

it "serializes short" do
subject.serialize(:short).should ==
["TEST", IB::Models::Contract::SECURITY_TYPES[:stock], "200609", 1234, "PUT", 123, "SMART", "USD", "baz"]
["TEST", IB::SECURITY_TYPES[:stock], "200609", 1234, "PUT", 123, "SMART", "USD", "baz"]
end
end #serialization

Expand Down

0 comments on commit 05dd8ec

Please sign in to comment.