@irruputuncu build some nice shortcuts for this. You can use FactoryGirl.create(:role, :student) (same as for admin, staff) to get the same behavior. The benefit is that if we somehow decide to change the name of the wanted role you don't have to fix so many failing tests