project_statistics.rb 212 Bytes
Newer Older
1
FactoryBot.define do
Markus Koller's avatar
Markus Koller committed
2
  factory :project_statistics do
3 4 5 6 7 8
    project

    initialize_with do
      # statistics are automatically created when a project is created
      project&.statistics || new
    end
Markus Koller's avatar
Markus Koller committed
9 10
  end
end