aboutsummaryrefslogtreecommitdiffstats
path: root/test/directivesSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-11-02 21:37:06 -0700
committerMisko Hevery2011-11-14 16:39:33 -0800
commit16597e8b52bdfe34b2239a5ab86a839fa8e980d6 (patch)
treefba1654a5f60fce0a21e3d9ed7d1c09cf6c2efbd /test/directivesSpec.js
parentf684f20c9982768b6c6d2c0e0797a626c0627773 (diff)
downloadangular.js-16597e8b52bdfe34b2239a5ab86a839fa8e980d6.tar.bz2
refactor($service): removed almost all references to scope.$service
- still need to remove from factory
Diffstat (limited to 'test/directivesSpec.js')
-rw-r--r--test/directivesSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js
index 96d0993b..7acf87bc 100644
--- a/test/directivesSpec.js
+++ b/test/directivesSpec.js
@@ -512,12 +512,12 @@ describe("directive", function() {
expect(element.text()).toEqual('hey dude!');
}));
- it('should infer injection arguments', inject(function($rootScope, $compile) {
+ it('should infer injection arguments', inject(function($rootScope, $compile, $xhr) {
temp.MyController = function($xhr){
this.$root.someService = $xhr;
};
var element = $compile('<div ng:controller="temp.MyController"></div>')($rootScope);
- expect($rootScope.someService).toBe($rootScope.$service('$xhr'));
+ expect($rootScope.someService).toBe($xhr);
}));
});