Created tests for post.rb