rspec for posts-controller-test