Updated documentation for spec helper function.