[chef] How to test Chef::REST.run_request


Chronological Thread 
  • From: Jeppe Nejsum Madsen <jeppe@ingolfs.dk>
  • To: chef@lists.opscode.com
  • Subject: [chef] How to test Chef::REST.run_request
  • Date: Mon, 13 Jul 2009 12:57:49 +0200

In order to write a test for CHEF-269, I need to write a test for Chef::REST.run_request. Unfortunately, this code is prefixed with

# TODO - Figure out how to test this block - I really have no idea how
      # to do it without actually calling http.request...

So, what is the best way to approach this?

/Jeppe



Archive powered by MHonArc 2.6.16.

§