aboutsummaryrefslogtreecommitdiffstats
path: root/test/scenario/DSLSpec.js
diff options
context:
space:
mode:
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);
});
});
});