foodsoft/spec/factories/order.rb

15 lines
239 B
Ruby
Raw Normal View History

2013-07-15 00:17:07 +02:00
require 'factory_girl'
FactoryGirl.define do
# requires articles from single supplier, or supplier (with all its articles)
factory :order do
starts { Time.now }
factory :stock_order do
supplier_id 0
end
end
end