From ac7738a97dfbec1a2c4ca30556f4903016e931c5 Mon Sep 17 00:00:00 2001 From: ragaskar Date: Thu, 7 Feb 2013 07:21:46 -0800 Subject: [PATCH] Add README example for testing request parameters. --- README.markdown | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.markdown b/README.markdown index 78ed19f..0258c5e 100644 --- a/README.markdown +++ b/README.markdown @@ -130,6 +130,9 @@ Putting it all together, you can install the mock, pass some spies as callbacks }); request = mostRecentAjaxRequest(); + expect(request.url).toBe('venues/search'); + expect(request.method').toBe('POST'); + expect(request.data()).toEqual({latLng: ['40.019461, -105.273296']}); }); describe("on success", function() {