Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FactoryGirl.define do
# Default enrollment has mentor
factory :enrollment do
course_start_date { 1.week.ago.beginning_of_week }
birth_date { 1.week.ago.beginning_of_week - 2.days }
course_id { create(:web_dev_course).id }
roadmap
status 'active'
chain {
create(:enrollment_chain,
program_end_date: course_start_date + course.length.weeks)
}
onboarded true
latest true
mentor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.