add spec for PostsController