foodsoft/spec/factories/group_order.rb

11 lines
202 B
Ruby
Raw Normal View History

2013-07-15 18:45:02 +02:00
require 'factory_girl'
FactoryGirl.define do
# requires order
2013-07-15 18:45:02 +02:00
factory :group_order do
ordergroup { FactoryGirl.create(:user, groups: [FactoryGirl.create(:ordergroup)]).ordergroup }
2013-07-15 18:45:02 +02:00
end
end