Created
March 22, 2010 15:37
Revisions
-
mag revised this gist
Mar 22, 2010 . 2 changed files with 8 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ @post_bodies = [] stub.proxy(Net::HTTP).new do |new_net_http| stub(new_net_http).request do |request| if request.method.downcase.to_sym == :post @post_bodies << request.body end end end This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +0,0 @@ -
mag created this gist
Mar 22, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ @post_bodies = [] stub.proxy(Net::HTTP).new do |new_net_http| stub(new_net_http).request do |request| if request.method.downcase.to_sym == :post @post_bodies << request.body end end end