refactoring the projects controller spec