10 lines
190 B
Ruby
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
|