aboutsummaryrefslogtreecommitdiffstats
path: root/test/directivesSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-02-12 10:13:28 -0800
committerMisko Hevery2011-02-16 01:03:12 -0500
commitef4bb28be13e99f96c9ace5936cf26a174a0e5f0 (patch)
tree833057505e430cac064214ac3d55c687338da2a9 /test/directivesSpec.js
parent496e6bf9016d33a7cf2f4730d06a8655f01ca5cb (diff)
downloadangular.js-ef4bb28be13e99f96c9ace5936cf26a174a0e5f0.tar.bz2
Change API angular.compile(element)([scope], [element/true])
Diffstat (limited to 'test/directivesSpec.js')
-rw-r--r--test/directivesSpec.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js
index 8e5a10ee..2d4703a2 100644
--- a/test/directivesSpec.js
+++ b/test/directivesSpec.js
@@ -3,11 +3,9 @@ describe("directive", function(){
var compile, model, element;
beforeEach(function() {
- var compiler = new Compiler(angularTextMarkup, angularAttrMarkup, angularDirective, angularWidget);
compile = function(html) {
element = jqLite(html);
- model = compiler.compile(element)(element);
- return model;
+ return model = angular.compile(element)().scope;
};
});