Permalink
Browse files

Sketchy sketch sketch.

  • Loading branch information...
1 parent abd5302 commit 96f704d9c16057a18c9cd205bdd636436ea42a3d @mdub committed Oct 12, 2010
Showing with 13 additions and 1 deletion.
  1. +13 −1 lib/sham_rack/patron.rb
@@ -22,10 +22,22 @@ def handle_request(patron_request)
def handle_request_with_rack(patron_request, rack_app)
res = Patron::Response.new
- res.body = "Hello World"
+ res.instance_variable_set(:@body, "hello World")
+ # res.instance_variable_set(:@status, webmock_response.status[0])
+ # res.instance_variable_set(:@status_line, webmock_response.status[1])
+ # res.instance_variable_set(:@headers, webmock_response.headers)
res
end
+ def create_rack_request(patron_request)
+ end
+
+ def rack_env(patron_request)
+ end
+
+ def patron_response(rack_response)
+ end
+
end
end

0 comments on commit 96f704d

Please sign in to comment.