Skip to content
Browse files

updated test which I forgot to update as part of yui351-fixups5 :(

  • Loading branch information...
1 parent 951b7de commit 8baf96dc5dd1bc1fc2150d7774be836975a955b3 @drewfish committed Jun 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 source/lib/tests/autoload/app/autoload/rest-tests.common.js
View
4 source/lib/tests/autoload/app/autoload/rest-tests.common.js
@@ -183,12 +183,12 @@ YUI.add('mojito-rest-lib-tests', function(Y, NAME) {
var io = Y.io;
var ioCalled = false;
Y.io = function(url, opts) {
- A.areSame('params', opts.data, 'bad data to y.io');
+ A.areSame('/x/?params', url, 'params added to URL');
ioCalled = true;
};
// act
- Y.mojito.lib.REST._doRequest('', '', 'params');
+ Y.mojito.lib.REST._doRequest('GET', '/x/', 'params');
// assert
A.isTrue(ioCalled, 'io never called');

0 comments on commit 8baf96d

Please sign in to comment.
Something went wrong with that request. Please try again.