Add spec and factory for posts.
Fix preferences on rspec