refactored the posts spec to only create it once