Adding the test for post using rspec