aboutsummaryrefslogtreecommitdiffstats
path: root/test/CompilerSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-02-13 16:13:21 -0800
committerMisko Hevery2011-02-16 08:59:57 -0500
commitc90abf057b0370cf5beb62aa960f1df008c802ef (patch)
tree039525ec1ee518175010693efd278fa105815285 /test/CompilerSpec.js
parentcdc093a463e8f8a925cbb9f2b55bedf0a1d8e7e8 (diff)
downloadangular.js-c90abf057b0370cf5beb62aa960f1df008c802ef.tar.bz2
Changed the angular.compile(element)(scope[, cloneAttachNode])
Diffstat (limited to 'test/CompilerSpec.js')
-rw-r--r--test/CompilerSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CompilerSpec.js b/test/CompilerSpec.js
index 1a93ac78..f1e1c607 100644
--- a/test/CompilerSpec.js
+++ b/test/CompilerSpec.js
@@ -47,7 +47,7 @@ describe('compiler', function(){
};
var template = compiler.compile(e);
expect(log).toEqual("found");
- scope = template(angular.scope(), e).scope;
+ scope = template(angular.scope()).scope;
expect(e.hasClass('ng-directive')).toEqual(true);
expect(log).toEqual("found:init");
});
@@ -84,7 +84,7 @@ describe('compiler', function(){
var template = this.compile(element);
return function(marker) {
this.$onEval(function() {
- marker.after(template(angular.scope(), true).view);
+ marker.after(template(angular.scope(), noop).view);
});
};
};