aboutsummaryrefslogtreecommitdiffstats
path: root/test/service/xhrSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-11-01 21:09:54 -0700
committerMisko Hevery2011-11-14 16:39:32 -0800
commited36b9da3be338fe9eb36f3eeea901d6f51cd768 (patch)
treeffdc924e4b1fc1c6912674c82e029bf975ca9fca /test/service/xhrSpec.js
parentc925f8a6578e05c8136c206f2fd98eeaaf1c0f16 (diff)
downloadangular.js-ed36b9da3be338fe9eb36f3eeea901d6f51cd768.tar.bz2
refactor(injector): switch to injector 2.0 introduce modules
Diffstat (limited to 'test/service/xhrSpec.js')
-rw-r--r--test/service/xhrSpec.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/service/xhrSpec.js b/test/service/xhrSpec.js
index 997994d7..83c5f93f 100644
--- a/test/service/xhrSpec.js
+++ b/test/service/xhrSpec.js
@@ -4,12 +4,10 @@ describe('$xhr', function() {
var log;
- beforeEach(inject(function(service) {
+ beforeEach(inject(function($provide) {
log = '';
- service('$xhr.error', function(){
- return jasmine.createSpy('xhr.error');
- });
- service.alias('$xhr.error', '$xhrError');
+ $provide.value('$xhr.error', jasmine.createSpy('xhr.error'));
+ $provide.factory('$xhrError', ['$xhr.error', identity]);
}));