This should be a double not a factory. The service layer needs to be as isolated from Rails as possible; which means never include spec_helper inside it or anything related to Rails.