Whitespace cleanup
[merb_mart.git] / spec / models / shipping_info_spec.rb
blob1600f3eb54295cf84f855a345f00dc214e0eebe4
1 require File.join( File.dirname(__FILE__), "..", "spec_helper" )
3 describe ShippingInfo do
4   before(:each) do
5     DataMapper.auto_migrate!
6   end
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
14     end
15   end
16 end