Could anyone please explain what this test code does? :
assert_difference(\'Post.count\') do
post :create, :post => { :title => \'Hi\', :body => \'T
This assertion is to verify the certain/specified difference in the first argument. 1st argument should be a string i.e "Post.count". Second argument has a default value 1, you can specify other numbers also, even negetive numbers. for more details visit: http://api.rubyonrails.org/classes/ActiveSupport/Testing/Assertions.html