aboutsummaryrefslogtreecommitdiffstats
path: root/test/scenario/DSLSpec.js
diff options
context:
space:
mode:
authorAndres Ornelas2010-07-27 17:04:37 -0700
committerAndres Ornelas2010-07-27 17:04:37 -0700
commitef88eb9a71ee7666029c4fb5eb731ce2e986cecc (patch)
tree1152efda8f109523808ba0baf2256465ca0ba6c7 /test/scenario/DSLSpec.js
parente8b477f5b1f6fcca99ea54731e7c4f09ef17b0f7 (diff)
downloadangular.js-ef88eb9a71ee7666029c4fb5eb731ce2e986cecc.tar.bz2
refactoring done but Expect not working
Diffstat (limited to 'test/scenario/DSLSpec.js')
-rw-r--r--test/scenario/DSLSpec.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/scenario/DSLSpec.js b/test/scenario/DSLSpec.js
index 4d8d1075..533d34ac 100644
--- a/test/scenario/DSLSpec.js
+++ b/test/scenario/DSLSpec.js
@@ -1,11 +1,9 @@
describe("DSL", function() {
- var scenario, runner, $scenario, lastDocument, executeFuture;
+ var lastDocument, executeFuture, Expect;
beforeEach(function() {
- scenario = {};
- runner = new angular.scenario.Runner(scenario, _jQuery);
- $scenario = scenario.$scenario;
+ setUpContext();
executeFuture = function(future, html, callback) {
lastDocument =_jQuery('<div>' + html + '</div>');
_jQuery(document.body).append(lastDocument);
@@ -15,6 +13,7 @@ describe("DSL", function() {
};
future.behavior.call(specThis, callback || noop);
};
+ Expect = scenario.expect;
});
describe("input", function() {
@@ -48,7 +47,7 @@ describe("DSL", function() {
expect(future.name).toEqual("repeater '.repeater-row' count");
executeFuture(future, "<div class='repeater-row'>a</div>" +
"<div class='repeater-row'>b</div>");
-// Expect(future).toEqual(2);
+ Expect(future).toEqual(2);
});
});
});