Skip to content

Commit

Permalink
updated test which I forgot to update as part of yui351-fixups5 :(
Browse files Browse the repository at this point in the history
  • Loading branch information
drewfish committed Jun 11, 2012
1 parent 951b7de commit 8baf96d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/lib/tests/autoload/app/autoload/rest-tests.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 8baf96d

Please sign in to comment.