Memoize attributes in controller spec