foodsoft/spec/factories/group_order.rb

10 lines
218 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
# 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 }
updated_by { create(:user) }
2013-07-15 18:45:02 +02:00
end
end