gitlab-org--gitlab-foss/spec/factories/project_statistics.rb
Rémy Coutable 857d039145
Lint our factories creation in addition to their build
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-02 19:06:50 +02:00

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