Commit 52bf3209 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'pl-spec-factories-assoc-project' into 'master'

Use explicit association for creator in project factory

See merge request gitlab-org/gitlab!44429
parents 85c8d86e aa22167a
......@@ -15,7 +15,7 @@ FactoryBot.define do
# Associations
namespace
creator { group ? create(:user) : namespace&.owner }
creator { group ? association(:user) : namespace&.owner }
transient do
# Nest Project Feature attributes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment