Refactoring manager_spec to avoid using magic variable