gitlab-org--gitlab-foss/spec/factories/project_statistics.rb

11 lines
212 B
Ruby
Raw Normal View History

FactoryBot.define do
factory :project_statistics do
project
initialize_with do
# statistics are automatically created when a project is created
project&.statistics || new
end
end
end