title: How to test Net::HTTP::Post request in ruby and minitest
body: <p>I'm trying to make sure a callback json object is properly sent by <code>Net::HTTP::Post</code>, how do I test it in minitest? What I wanted is to compare the <code>POST</code> body to the JSON object that I want to be sent when I call the <code>#perform</code> method of a delayed_job class. I also want to make sure a target URL actually received this <code>POST</code> request.</p>
  
  <p>I looked at fakeweb, but it looks like it doesn't do <code>POST</code> requests. The closest I could do seems to be <a href="http://requestb.in/" rel="nofollow">http://requestb.in/</a>, but it seems to be a bit manual. </p>