abstract a stub into a spec helper method