Sha256: c6479b1d68259fc9649ec44b58111c145660b5b347edc131cff8c22e428f4c17
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
require 'spec_helper' describe Orders::OrderBookItem do describe '#new with empty initializer' do subject { Orders::OrderBookItem.new } its (:isin_id) {should == nil} its (:id) {should == nil} its (:rev) {should == nil} its (:price) {should == nil} its (:volume) {should == nil} its (:buysell) {should == nil} its (:order_book) {should == nil} end describe '#new with opts' do subject { Orders::OrderBookItem.new :isin_id => 1234567, :id => 12, :rev => 123, :price => 1234, :volume => 12345, :buysell => 1, :order_book => 123456 } its (:isin_id) {should == 1234567} its (:id) {should == 12} its (:rev) {should == 123} its (:price) {should == 1234} its (:volume) {should == 12345} its (:buysell) {should == 1} its (:order_book) {should == 123456} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
orders-0.0.3 | spec/orders/order_book_item_spec.rb |
orders-0.0.2 | spec/orders/order_book_item_spec.rb |