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 }
|
2023-05-12 13:01:12 +02:00
|
|
|
updated_by { create(:user) }
|
2013-07-15 18:45:02 +02:00
|
|
|
end
|
|
|
|
end
|