gitlab-org--gitlab-foss/spec/factories/project_wikis.rb
Rémy Coutable a2718ebaff Make user/author use project.creator in most factories
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-01-31 18:31:21 +01:00

9 lines
159 B
Ruby

FactoryBot.define do
factory :project_wiki do
skip_create
project
user { project.creator }
initialize_with { new(project, user) }
end
end