debian-mirror-gitlab/spec/factories/project_statistics.rb
2018-03-17 18:26:18 +05:30

10 lines
212 B
Ruby

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