aboutsummaryrefslogtreecommitdiffstats
path: root/test/ValidatorsTest.js
diff options
context:
space:
mode:
authorIgor Minar2011-01-04 11:53:23 -0800
committerIgor Minar2011-01-04 18:04:00 -0800
commitb2631f61709ae71bb29ec6f1353f2a3c1ad33cd3 (patch)
tree4c955af5f726d29e2d6004d39403d0843f37711e /test/ValidatorsTest.js
parent1430c6d6b1f4edf11b1bd877e8907ac8ab0be923 (diff)
downloadangular.js-b2631f61709ae71bb29ec6f1353f2a3c1ad33cd3.tar.bz2
rename scope.$inject to scope.$service
see changelog diff for more info
Diffstat (limited to 'test/ValidatorsTest.js')
-rw-r--r--test/ValidatorsTest.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ValidatorsTest.js b/test/ValidatorsTest.js
index d6df7184..c59aaf77 100644
--- a/test/ValidatorsTest.js
+++ b/test/ValidatorsTest.js
@@ -128,7 +128,7 @@ describe('Validator:asynchronous', function(){
it("should not make second request to same value", function(){
asynchronous.call(self, "kai", function(v,f){value=v; fn=f;});
expect(value).toEqual('kai');
- expect(self.$inject('$invalidWidgets')[0]).toEqual(self.$element);
+ expect(self.$service('$invalidWidgets')[0]).toEqual(self.$element);
var spy = jasmine.createSpy();
asynchronous.call(self, "kai", spy);