Welcome to mirror list, hosted at ThFree Co, Russian Federation.

project_statistics.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6c2ed7c65815fbb707c09514ed5fd18d2ecfd09f (plain)
1
2
3
4
5
6
7
8
9
10
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