diff options
Diffstat (limited to 'test/ng/compileSpec.js')
| -rwxr-xr-x | test/ng/compileSpec.js | 8 | 
1 files changed, 7 insertions, 1 deletions
| diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js index 1b98cd58..39e23695 100755 --- a/test/ng/compileSpec.js +++ b/test/ng/compileSpec.js @@ -4243,7 +4243,13 @@ describe('$compile', function() {        expect(element.attr('test2')).toBe('Misko');        expect(element.attr('test3')).toBe('Misko');      })); - +     +    it('should work with the "href" attribute', inject(function($compile, $rootScope) { +      $rootScope.value = 'test'; +      element = $compile('<a ng-attr-href="test/{{value}}"></a>')($rootScope); +      $rootScope.$digest(); +      expect(element.attr('href')).toBe('test/test'); +    }));      it('should work if they are prefixed with x- or data-', inject(function($compile, $rootScope) {        $rootScope.name = "Misko"; | 
