aboutsummaryrefslogtreecommitdiffstats
path: root/test/directivesSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/directivesSpec.js')
-rw-r--r--test/directivesSpec.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js
index e0e53eeb..447698a3 100644
--- a/test/directivesSpec.js
+++ b/test/directivesSpec.js
@@ -94,4 +94,13 @@ describe("directives", function(){
scope.updateView();
expect(scope.get('count')).toEqual(1);
});
+
+ it('should ng-action', function(){
+ var scope = compile('<div ng-action="clicked = true"></div>');
+ scope.updateView();
+ expect(scope.get('clicked')).toBeFalsy();
+
+ jQuery(element.element).click();
+ expect(scope.get('clicked')).toEqual(true);
+ });
});