FactoryGirl.define do
  factory :project do
    unit
    campus
    user

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

FactoryGirl.define do
  factory :project do
    unit
    campus
    user

    after(:create) do |project|
      tutorial = FactoryGirl.create(:tutorial, campus: project.campus)
      create_list(:tutorial_enrolment, 1, project: project, tutorial: tutorial)
    end
  end
end

Create 1 enrolment to avoid duplicate error
FIX: Create 1 enrolment to avoid duplicate error
