Sha256: e56befc5b28aa65a0d85ca0560d70fdc70581e4e372dcdfd8f87c3f7e7bd932c

Contents?: true

Size: 595 Bytes

Versions: 6

Compression:

Stored size: 595 Bytes

Contents

require 'model_helper'

describe IB::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

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

end # describe IB::ib/

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ib-ruby-0.9.2 spec/models/ib/underlying_spec.rb
ib-ruby-0.9.1 spec/models/ib/underlying_spec.rb
ib-ruby-0.9.0 spec/models/ib/underlying_spec.rb
ib-ruby-0.8.5 spec/models/ib/underlying_spec.rb
ib-ruby-0.8.4 spec/models/ib/underlying_spec.rb
ib-ruby-0.8.3 spec/models/ib/underlying_spec.rb