foodsoft/spec/factories/group_order.rb
2013-07-25 13:08:38 +02:00

10 lines
202 B
Ruby

require 'factory_girl'
FactoryGirl.define do
# requires order
factory :group_order do
ordergroup { FactoryGirl.create(:user, groups: [FactoryGirl.create(:ordergroup)]).ordergroup }
end
end