spec/dummy/tmp/cache/assets/DF6/0E0/sprockets%2F85b10db6e1afe643aba6d396abdd77f0 in teabag-0.3.6 vs spec/dummy/tmp/cache/assets/DF6/0E0/sprockets%2F85b10db6e1afe643aba6d396abdd77f0 in teabag-0.4.0

- old
+ new

@@ -1,8 +1,8 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1356388025.2065961: @value"©:{I" +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1356489211.193454: @value"É;{I" class:EFI"BundledAsset;FI"logical_path;FI"teabag/mocha.js;FI" pathname;FI"P/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/mocha.coffee;FI"content_type;FI"application/javascript;FI" -mtime;FI"2012-12-24T15:26:57-07:00;FI" length;Fi×8I" digest;F"%173149542febc4e68d1e9615ce44f32fI" source;FI"×8;(function(){ +mtime;FI"2012-12-25T19:00:28-07:00;FI" length;Fi÷9I" digest;F"%35211c51ae2c5cb51b92019bb7cc0e6aI" source;FI"÷9;(function(){ // CommonJS require() function require(p){ @@ -3269,11 +3269,13 @@ function TAP(runner) { Base.call(this, runner); var self = this , stats = this.stats - , n = 1; + , n = 1 + , passes = 0 + , failures = 1; runner.on('start', function(){ var total = runner.grepTotal(runner.suite); console.log('%d..%d', 1, total); }); @@ -3285,17 +3287,25 @@ runner.on('pending', function(test){ console.log('ok %d %s # SKIP -', n, title(test)); }); runner.on('pass', function(test){ + passes++; console.log('ok %d %s', n, title(test)); }); runner.on('fail', function(test, err){ + failures++; console.log('not ok %d %s', n, title(test)); console.log(err.stack.replace(/^/gm, ' ')); }); + + runner.on('end', function(){ + console.log('# tests ' + (passes + failures)); + console.log('# pass ' + passes); + console.log('# fail ' + failures); + }); } /** * Return a TAP-safe title of `test` * @@ -3847,11 +3857,11 @@ Runner.prototype.globalProps = function() { var props = utils.keys(global); // non-enumerables for (var i = 0; i < globals.length; ++i) { - if (~props.indexOf(globals[i])) continue; + if (~utils.indexOf(props, globals[i])) continue; props.push(globals[i]); } return props; }; @@ -4218,11 +4228,13 @@ debug('start'); // callback this.on('end', function(){ debug('end'); - process.removeListener('uncaughtException', function(err) { self.uncaught.call(self, err) }); + process.removeListener('uncaughtException', function(err){ + self.uncaught(err); + }); fn(self.failures); }); // run suites this.emit('start'); @@ -4230,11 +4242,13 @@ debug('finished running'); self.emit('end'); }); // uncaught exception - process.on('uncaughtException', function(err) { self.uncaught.call(self, err) }); + process.on('uncaughtException', function(err){ + self.uncaught(err); + }); return this; }; /** @@ -5825,11 +5839,11 @@ this.reportSpecStarting(spec); return HTML.__super__.reportSpecResults.apply(this, arguments); }; HTML.prototype.envInfo = function() { - return "mocha 1.7.3"; + return "mocha 1.7.4"; }; return HTML; })(Teabag.Reporters.HTML); @@ -5948,6 +5962,6 @@ return Suite; })(); }).call(this); -;TI"required_assets_digest;F"%516059c14640659f993fd5032a38b89dI" _version;F"%6776f581a4329e299531e1d52aa59832 +;TI"required_assets_digest;F"%43da23a42f4c597047fa8499f6843401I" _version;F"%6776f581a4329e299531e1d52aa59832 \ No newline at end of file