2017-10-27 23:21:31 +02:00
|
|
|
require 'factory_bot'
|
2013-07-15 18:45:02 +02:00
|
|
|
|
2017-10-27 23:21:31 +02:00
|
|
|
FactoryBot.define do
|
2013-07-25 13:08:38 +02:00
|
|
|
# requires order
|
2013-07-15 18:45:02 +02:00
|
|
|
factory :group_order do
|
2017-10-27 23:21:31 +02:00
|
|
|
ordergroup { create(:user, groups: [FactoryBot.create(:ordergroup)]).ordergroup }
|
2020-08-01 02:49:15 +02:00
|
|
|
updated_by { create :user }
|
2013-07-15 18:45:02 +02:00
|
|
|
end
|
|
|
|
end
|