aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario/Runner.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 /src/scenario/Runner.js
parente8b477f5b1f6fcca99ea54731e7c4f09ef17b0f7 (diff)
downloadangular.js-ef88eb9a71ee7666029c4fb5eb731ce2e986cecc.tar.bz2
refactoring done but Expect not working
Diffstat (limited to 'src/scenario/Runner.js')
-rw-r--r--src/scenario/Runner.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scenario/Runner.js b/src/scenario/Runner.js
index 4e5d0f01..13dfbe7d 100644
--- a/src/scenario/Runner.js
+++ b/src/scenario/Runner.js
@@ -8,6 +8,7 @@ angular.scenario.Runner = function(scope, jQuery){
this.scope.$testrun = {done: false, results: []};
var specs = this.specs = {};
+ this.currentSpec = {name: '', futures: []};
var path = [];
this.scope.describe = function(name, body){
path.push(name);
@@ -23,7 +24,7 @@ angular.scenario.Runner = function(scope, jQuery){
afterEach = body;
};
this.scope.expect = function(future) {
- return new Matcher(future, self.logger);
+ return new Matcher(self, future, self.logger);
};
this.scope.it = function(name, body) {
var specName = path.join(' ') + ': it ' + name;