spec for snippet controller decorator