debian-mirror-gitlab/spec/factories/project_statistics.rb
2017-09-10 17:25:29 +05:30

10 lines
213 B
Ruby

FactoryGirl.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