Added specs for posts controller