aboutsummaryrefslogtreecommitdiffstats
path: root/test/directive/selectSpec.js
diff options
context:
space:
mode:
authorIgor Minar2012-03-12 21:12:15 -0700
committerIgor Minar2012-03-12 23:04:11 -0700
commitf59e4b11f11261c234a821db67088f0de88a2852 (patch)
tree943bb9340139c053ab16255a184121cc6db9ee95 /test/directive/selectSpec.js
parent5e6ba2520174218d26defbe9488a1073da882072 (diff)
downloadangular.js-f59e4b11f11261c234a821db67088f0de88a2852.tar.bz2
fix(forms): prefix all form and control properties with $
Diffstat (limited to 'test/directive/selectSpec.js')
-rw-r--r--test/directive/selectSpec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/directive/selectSpec.js b/test/directive/selectSpec.js
index 3b4f992e..c6cfa377 100644
--- a/test/directive/selectSpec.js
+++ b/test/directive/selectSpec.js
@@ -55,7 +55,7 @@ describe('select', function() {
scope.selection = 'c';
});
- expect(scope.form.select.error.REQUIRED).toBeFalsy();
+ expect(scope.form.select.$error.REQUIRED).toBeFalsy();
expect(element).toBeValid();
expect(element).toBePristine();
@@ -63,7 +63,7 @@ describe('select', function() {
scope.selection = '';
});
- expect(scope.form.select.error.REQUIRED).toBeTruthy();
+ expect(scope.form.select.$error.REQUIRED).toBeTruthy();
expect(element).toBeInvalid();
expect(element).toBePristine();
expect(scope.log).toEqual('');
@@ -117,7 +117,7 @@ describe('select', function() {
scope.selection = [];
});
- expect(scope.form.select.error.REQUIRED).toBeTruthy();
+ expect(scope.form.select.$error.REQUIRED).toBeTruthy();
expect(element).toBeInvalid();
expect(element).toBePristine();