foodsoft/spec/factories/group_order.rb

11 lines
187 B
Ruby
Raw Normal View History

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-15 18:45:02 +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 }
2013-07-15 18:45:02 +02:00
end
end