o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1356051802.12516: @value"¦ {I" class:EFI"BundledAsset;FI"logical_path;FI"%teabag/base/reporters/console.js;FI" pathname;FI"a/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/console.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2012-12-16T20:14:56-07:00;FI" length;Fi´ I" digest;F"%251283f980d26f303066d7508dac4d54I" source;FI"´ (function() { var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; Teabag.Reporters.Console = (function() { function Console() { this.reportRunnerResults = __bind(this.reportRunnerResults, this); this.start = new Teabag.Date().getTime(); } Console.prototype.reportSpecResults = function(spec) { var result; this.spec = new Teabag.Reporters.NormalizedSpec(spec); result = this.spec.result(); switch (result.status) { case "pending": return this.trackPending(); case "failed": return this.trackFailure(); default: return this.log({ type: "spec", suite: this.spec.suiteName, spec: this.spec.description, status: result.status, skipped: result.skipped, full_description: this.spec.fullDescription }); } }; Console.prototype.trackPending = function() { var result; result = this.spec.result(); return this.log({ type: "spec", suite: this.spec.suiteName, spec: this.spec.description, status: result.status, skipped: result.skipped, full_description: this.spec.fullDescription }); }; Console.prototype.trackFailure = function() { var error, result, _i, _len, _ref, _results; result = this.spec.result(); _ref = this.spec.errors(); _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { error = _ref[_i]; _results.push(this.log({ type: "spec", suite: this.spec.suiteName, spec: this.spec.description, status: result.status, skipped: result.skipped, full_description: this.spec.fullDescription, link: this.spec.link, message: error.message, trace: error.stack || error.message || "Stack Trace Unavailable" })); } return _results; }; Console.prototype.reportRunnerResults = function() { this.log({ type: "results", elapsed: ((new Teabag.Date().getTime() - this.start) / 1000).toFixed(5) }); return Teabag.finished = true; }; Console.prototype.log = function(obj) { if (obj == null) { obj = {}; } obj["_teabag"] = true; return Teabag.console.log(JSON.stringify(obj)); }; return Console; })(); }).call(this); ;FI"required_assets_digest;F"%f45968347cd8f80e44712968d7d361d9I" _version;F"%6776f581a4329e299531e1d52aa59832