Sha256: bcd28228efd96b7e3057ff0e19186d1e83ed3a2a8b721d7240c8f03cb9ac1f0e

Contents?: true

Size: 781 Bytes

Versions: 3

Compression:

Stored size: 781 Bytes

Contents

require 'model_helper'

describe IB::Models::Underlying,
         :props =>
             {:con_id => 234567,
              :delta => 0.55,
              :price => 20.5,
             },

         :human => /<Underlying: con_id: 234567 .*delta: 0.55 price: 20.5.*>/,

         :errors =>
             {:delta => ['is not a number'],
              :price => ['is not a number'],
             },

         :assigns =>
             {[:con_id, :delta, :price] => numeric_assigns,

             } do # AKA IB::Underlying

  it_behaves_like 'Self-equal Model'
  it_behaves_like 'Model with invalid defaults'

  it 'has class name shortcut' do
    IB::Underlying.should == IB::Models::Underlying
    IB::Underlying.new.should == IB::Models::Underlying.new
  end
end # describe IB::Contract

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ib-ruby-0.8.1 spec/ib-ruby/models/underlying_spec.rb
ib-ruby-0.8.0 spec/ib-ruby/models/underlying_spec.rb
ib-ruby-0.7.12 spec/ib-ruby/models/underlying_spec.rb