uses FactoryGirl helpers
This commit is contained in:
parent
1cf2145ff6
commit
f462e70e49
17 changed files with 65 additions and 63 deletions
|
|
@ -4,7 +4,7 @@ FactoryGirl.define do
|
|||
|
||||
# requires order
|
||||
factory :group_order do
|
||||
ordergroup { FactoryGirl.create(:user, groups: [FactoryGirl.create(:ordergroup)]).ordergroup }
|
||||
ordergroup { create(:user, groups: [FactoryGirl.create(:ordergroup)]).ordergroup }
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue