Add a spec for view helper functions