FactoryGirl.define do
  factory :project do
    unit
    campus
    user

    after(:build) do |project|
      project.tutorial = FactoryGirl.create(:tutorial, campus: project.campus, unit: project.unit)
    end
  end
end

FactoryGirl.define do
  factory :project do
    unit
    campus
    user

    after(:create) do |project|
      create_list(:tutorial_enrolment, 3, project: project)
    end
  end
end

Add tutorial enrolment in project factory
ENHANCE: Add tutorial enrolment in project factory
