o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1354844962.668654: @value"Ô {I" class:EFI"ProcessedAsset;FI"logical_path;FI",teabag/reporters/mocha/json-reporter.js;FI" pathname;FI"h/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/reporters/mocha/json-reporter.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2012-12-06T18:39:01-07:00;FI" length;FikI" digest;F"%055290cfd653552845bbb40bd406e666I" source;FI"k(function() { var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; Teabag.Reporters.JSONReporter = (function() { var fails, total; fails = []; total = 0; function JSONReporter(runner) { this.reportRunnerResults = __bind(this.reportRunnerResults, this); this.reportSpecResults = __bind(this.reportSpecResults, this); this.start = Date.now(); runner.on('fail', this.reportSpecResults); runner.on('test end', this.reportSpecResults); runner.on('end', this.reportRunnerResults); } JSONReporter.prototype.reportSpecResults = function(spec, err) { var status; total += 1; switch (spec.state) { case 'passed': status = 'pass'; break; case 'pending': status = 'skipped'; break; default: if (!err) { return; } spec.err = err; this.trackFailure(spec); status = 'fail'; } return this.log({ type: 'spec', status: status, description: spec.title, suite: spec.parent.fullTitle() }); }; JSONReporter.prototype.reportRunnerResults = function() { this.log({ type: 'results', total: total, failures: fails, elapsed: Date.now() - this.start }); return Teabag.finished = true; }; JSONReporter.prototype.trackFailure = function(spec) { return fails.push({ spec: spec.fullTitle(), description: spec.err.message, trace: spec.err.stack || spec.err.toString() }); }; JSONReporter.prototype.log = function(object) { if (object == null) { object = {}; } object['_teabag'] = true; return console.log(JSON.stringify(object)); }; return JSONReporter; })(); }).call(this); ;TI"dependency_digest;F"%270037d881f9ea60be67e7896dca8f0cI"required_paths;F[I"h/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/reporters/mocha/json-reporter.coffee;FI"dependency_paths;F[{I" path;FI"h/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/reporters/mocha/json-reporter.coffee;FI" mtime;FI"2012-12-06T18:39:01-07:00;FI" digest;F"%397bf556a2e79129dbf7996cf2f94b24I" _version;F"%6776f581a4329e299531e1d52aa59832