aboutsummaryrefslogtreecommitdiffstats
path: root/test/widgetsSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/widgetsSpec.js')
-rw-r--r--test/widgetsSpec.js3
1 files changed, 1 insertions, 2 deletions
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');
});
});