project_statistics.rb 213 Bytes EditWeb IDE 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