Merge pull request #22 from ragaskar/param_expectation_example

Add README example for testing request parameters.
This commit is contained in:
JR Boyens 2013-02-12 23:44:27 -08:00
commit d6b52c4d4b

View File

@ -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() {