appendto/jquery-mockjax — pull request #51 by ifandelse (2012-01-18 00:41:27+00:00)
Title: Added statusText, updated tests

The jqXHR object supports a statusText field in addition to status code. Please see http://api.jquery.com/jQuery.ajax/ (search for the text "For backward compatibility with XMLHttpRequest, a jqXHR object will expose the following properties and methods" and you will see statusText listed). I've updated the mocked XHR object to support this field, and added some assertions in the tests to verify that it both defaults properly and reflects a value when set to something specific. In addition, I fixed an unrelated bug where 3 assertions were being expected, and 5 were actually being run.

I'm brand new to the mockjax codebase (as in the last 30 minutes), so let me know if I've misunderstood anything, or made some bad assumptions and I will correct with updated commits.