Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- encoding : utf-8 -*-
- require 'machinist/mongoid'
- require 'forgery'
- School.blueprint do
- name { "Pablo de olavide"}
- end
- Course.blueprint do
- name { Forgery::Name.course}
- school { School.make! }
- end
- Student.blueprint do
- first_name { Forgery::Name.first_name}
- last_name { Forgery::Name.last_name }
- school { School.make! }
- end
- Professor.blueprint do
- first_name { Forgery::Name.first_name}
- last_name { Forgery::Name.last_name }
- school { School.make! }
- end
- CourseGroup.blueprint do
- name { Forgery::Name.course_group}
- courses { Course.make!(4) }
- school { School.make! }
- end
Add Comment
Please, Sign In to add comment