Sha256: 2b8ed3994896b73d2be50c29bc3091f7cb67fbbd973046f64f5ade588a53e894
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
require 'model_helper' describe IB::Models::Bar, :props => {:open => 1.31, :high => 1.35, :low => 1.30, :close => 1.33, :wap => 1.32, :volume => 20000, :has_gaps => true, :trades => 50, :time => "20120312 15:41:09", }, :human => "<Bar: 20120312 15:41:09 wap 1.32 OHLC 1.31 1.35 1.3 1.33 trades 50 vol 20000 gaps true>", :errors => {:close => ["is not a number"], :high => ["is not a number"], :low => ["is not a number"], :open => ["is not a number"], :volume => ["is not a number"]}, :assigns => {:has_gaps => {[1, true] => true, [0, false] => false}, [:open, :high, :low, :close, :volume] => {[:foo, 'BAR', nil] => /is not a number/} } do # AKA IB::Bar it_behaves_like 'Model with invalid defaults' it_behaves_like 'Self-equal Model' it 'has class name shortcut' do IB::Bar.should == IB::Models::Bar IB::Bar.new.should == IB::Models::Bar.new end end # describe IB::Bar
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ib-ruby-0.8.1 | spec/ib-ruby/models/bar_spec.rb |
ib-ruby-0.8.0 | spec/ib-ruby/models/bar_spec.rb |
ib-ruby-0.7.12 | spec/ib-ruby/models/bar_spec.rb |