aboutsummaryrefslogtreecommitdiffstats
path: root/test/directive/ngControllerSpec.js
diff options
context:
space:
mode:
authorIgor Minar2012-03-09 00:00:05 -0800
committerIgor Minar2012-03-09 16:14:26 -0800
commitf4d338d393dabb49182d40b4fe90c4d1b51621c0 (patch)
tree6c20fbef9865869e9db44f27c53aec11f1e30d5e /test/directive/ngControllerSpec.js
parent0bfaa579c04d1b7cd21fbe16bfbc47a684f223b3 (diff)
downloadangular.js-f4d338d393dabb49182d40b4fe90c4d1b51621c0.tar.bz2
chore(*): refactor all ng: to ng-
Diffstat (limited to 'test/directive/ngControllerSpec.js')
-rw-r--r--test/directive/ngControllerSpec.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/directive/ngControllerSpec.js b/test/directive/ngControllerSpec.js
index 3ab6b929..832a683d 100644
--- a/test/directive/ngControllerSpec.js
+++ b/test/directive/ngControllerSpec.js
@@ -1,6 +1,6 @@
'use strict';
-describe('ng:controller', function() {
+describe('ng-controller', function() {
var element;
beforeEach(inject(function($window) {
@@ -35,19 +35,19 @@ describe('ng:controller', function() {
it('should instantiate controller and bind methods', inject(function($compile, $rootScope) {
- element = $compile('<div ng:controller="Greeter">{{greet(name)}}</div>')($rootScope);
+ element = $compile('<div ng-controller="Greeter">{{greet(name)}}</div>')($rootScope);
$rootScope.$digest();
expect(element.text()).toBe('Hello Misko!');
}));
it('should allow nested controllers', inject(function($compile, $rootScope) {
- element = $compile('<div ng:controller="Greeter"><div ng:controller="Child">{{greet(name)}}</div></div>')($rootScope);
+ element = $compile('<div ng-controller="Greeter"><div ng-controller="Child">{{greet(name)}}</div></div>')($rootScope);
$rootScope.$digest();
expect(element.text()).toBe('Hello Adam!');
dealoc(element);
- element = $compile('<div ng:controller="Greeter"><div ng:controller="Child">{{protoGreet(name)}}</div></div>')($rootScope);
+ element = $compile('<div ng-controller="Greeter"><div ng-controller="Child">{{protoGreet(name)}}</div></div>')($rootScope);
$rootScope.$digest();
expect(element.text()).toBe('Hello Adam!');
}));
@@ -58,7 +58,7 @@ describe('ng:controller', function() {
$scope.name = 'Vojta';
};
- element = $compile('<div ng:controller="Greeter">{{name}}</div>')($rootScope);
+ element = $compile('<div ng-controller="Greeter">{{name}}</div>')($rootScope);
$rootScope.$digest();
expect(element.text()).toBe('Vojta');
}));