Permalink
Browse files

Fixed blank url test for jquery 1.6.2

  • Loading branch information...
1 parent 7ed9203 commit ee275d15342c41f9088137829b1a9b9c0cf304be @JangoSteve JangoSteve committed Aug 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/public/test/call-remote.js
@@ -98,7 +98,7 @@ asyncTest('allow empty form "action"', 1, function() {
}
// Actual location (strip out settings.data that jQuery serializes and appends)
- ajaxLocation = settings.url.replace(settings.data,"").replace(/&$/, "");
+ ajaxLocation = settings.url.replace(settings.data,"").replace(/&$/, "").replace(/\?$/, "");
equal(ajaxLocation.match(/^(.*)/)[1], currentLocation, 'URL should be current page by default');
// Prevent the request from actually getting sent to the current page and

0 comments on commit ee275d1

Please sign in to comment.