aboutsummaryrefslogtreecommitdiffstats
path: root/test/testabilityPatch.js
diff options
context:
space:
mode:
authorMisko Hevery2011-10-31 15:33:52 -0700
committerMisko Hevery2011-11-14 16:39:32 -0800
commitc925f8a6578e05c8136c206f2fd98eeaaf1c0f16 (patch)
treee0211ce36aabe753fd633874ea5338612ab9f9fb /test/testabilityPatch.js
parent4c10d33eb4340d6df30e298d63f4d37c25aab65f (diff)
downloadangular.js-c925f8a6578e05c8136c206f2fd98eeaaf1c0f16.tar.bz2
new(injector): new injector v2.0
- not connected to keep the CL small
Diffstat (limited to 'test/testabilityPatch.js')
-rw-r--r--test/testabilityPatch.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js
index b5949623..3e68fbed 100644
--- a/test/testabilityPatch.js
+++ b/test/testabilityPatch.js
@@ -111,7 +111,7 @@ function inject(){
fn.call(spec, spec.$service);
} else {
if (!spec.$injector) {
- spec.$injector = angular.injector(spec.$service);
+ spec.$injector = angular.injector(spec.$service || angular.service);
}
spec.$injector.invoke(spec, fn);
}