1 require File.join( File.dirname(__FILE__), "..", "spec_helper" )
3 describe ShippingInfo do
5 DataMapper.auto_migrate!
8 describe "associations" do
9 it "should have n orders" do
10 orders = (1..10).of {Order.gen}
11 shipping_info = ShippingInfo.create(ShippingInfo.gen_attrs.merge(:orders => orders))
12 shipping_info.orders = orders
13 shipping_info.should be_valid