diff options
| author | Andres Ornelas | 2010-07-27 17:04:37 -0700 |
|---|---|---|
| committer | Andres Ornelas | 2010-07-27 17:04:37 -0700 |
| commit | ef88eb9a71ee7666029c4fb5eb731ce2e986cecc (patch) | |
| tree | 1152efda8f109523808ba0baf2256465ca0ba6c7 /src/scenario/Matcher.js | |
| parent | e8b477f5b1f6fcca99ea54731e7c4f09ef17b0f7 (diff) | |
| download | angular.js-ef88eb9a71ee7666029c4fb5eb731ce2e986cecc.tar.bz2 | |
refactoring done but Expect not working
Diffstat (limited to 'src/scenario/Matcher.js')
| -rw-r--r-- | src/scenario/Matcher.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scenario/Matcher.js b/src/scenario/Matcher.js index a4a13285..b9787050 100644 --- a/src/scenario/Matcher.js +++ b/src/scenario/Matcher.js @@ -1,10 +1,10 @@ -function Matcher(future, logger) { - var self = this; +function Matcher(scope, future, logger) { + var self = scope.$scenario = this; this.logger = logger; this.future = future; } -Matcher.addMatcher = function(name, matcher){ +Matcher.addMatcher = function(name, matcher) { Matcher.prototype[name] = function(expected) { var future = this.future; $scenario.addFuture( @@ -18,4 +18,4 @@ Matcher.addMatcher = function(name, matcher){ }; }; -Matcher.addMatcher('toEqual', function(a,b){ return a == b; }); +Matcher.addMatcher('toEqual', function(a,b) { return a == b; }); |
