foodsoft/spec/factories/group_order.rb

11 lines
190 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
2013-09-18 12:44:41 +02:00
ordergroup { create(:user, groups: [FactoryGirl.create(:ordergroup)]).ordergroup }
2013-07-15 18:45:02 +02:00
end
end