foodsoft/spec/factories/group_order.rb
2013-09-18 12:44:41 +02:00

10 lines
190 B
Ruby

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