Permalink
Browse files

Merge branch 'fix-ajax-error-testcase' of https://github.com/alassek/…

…jquery-ujs into alassek-fix-ajax-error-testcase
  • Loading branch information...
2 parents 298f69e + da1affc commit 9132c5ff4dcf32d60c4f5230791f50eec49f1ae9 @JangoSteve JangoSteve committed Apr 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/public/test/call-remote-callbacks.js
@@ -281,7 +281,7 @@ asyncTest('"ajax:beforeSend", "ajax:error" and "ajax:complete" are triggered on
form.bind('ajax:error', function(e, xhr, status, error) {
ok(xhr.getResponseHeader, 'first argument to "ajax:error" should be an XHR object');
equal(status, 'error', 'second argument to ajax:error should be a status string');
- equal(error, 'Forbidden', 'third argument to ajax:error should be an HTTP status response');
+ equal($.trim(error), 'Forbidden', 'third argument to ajax:error should be an HTTP status response');
// Opera returns "0" for HTTP code
equal(xhr.status, window.opera ? 0 : 403, 'status code should be 403');
});

0 comments on commit 9132c5f

Please sign in to comment.