refactoring controller specs-- adding for each statements