diff options
| author | Misko Hevery | 2011-11-03 13:53:37 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2011-11-14 16:39:33 -0800 | 
| commit | 7c11531902986405e9443c30dd0c654f86c31ca3 (patch) | |
| tree | b81c6ecdd2f4c6fc71b16ecd26044690f13228da /test/service/parseSpec.js | |
| parent | c6d2549a5255822290853aae8d922848b81bed62 (diff) | |
| download | angular.js-7c11531902986405e9443c30dd0c654f86c31ca3.tar.bz2 | |
refactor(parser): turn parser into a service (keep compatibility hack)
Diffstat (limited to 'test/service/parseSpec.js')
| -rw-r--r-- | test/service/parseSpec.js | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/test/service/parseSpec.js b/test/service/parseSpec.js index ce3b22ca..5045ec9e 100644 --- a/test/service/parseSpec.js +++ b/test/service/parseSpec.js @@ -413,12 +413,12 @@ describe('parser', function() {    describe('assignable', function() { -    it('should expose assignment function', function() { -      var fn = parser('a').assignable(); +    it('should expose assignment function', inject(function($parse) { +      var fn = $parse('a');        expect(fn.assign).toBeTruthy();        var scope = {};        fn.assign(scope, 123);        expect(scope).toEqual({a:123}); -    }); +    }));    });  }); | 
