From ac1d02d0658cb74ae3822e364f84809d78cda335 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 30 Apr 2010 12:22:07 -0700 Subject: make xhr post optional --- test/widgetsSpec.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/widgetsSpec.js') diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js index b38ca2a1..c9665f1e 100644 --- a/test/widgetsSpec.js +++ b/test/widgetsSpec.js @@ -276,9 +276,8 @@ describe("widget", function(){ scope.childScope = createScope(); scope.childScope.name = 'misko'; scope.url = 'myUrl'; - scope.$browser.xhr.expect('GET', 'myUrl').respond('{{name}}'); + scope.$xhr.cache.data.myUrl = {value:'{{name}}'}; scope.$init(); - scope.$browser.xhr.flush(); expect(element.text()).toEqual('misko'); }); }); -- cgit v1.2.3