o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1358449150.637716: @value"x{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"2013-01-11T20:50:08-07:00;FI" length;Fi† I" digest;F"%efed884e03e67472ca13d023c2785e66I" 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(); this.suites = {}; } Console.prototype.reportRunnerStarting = function(runner) { return this.log({ type: "runner", total: runner.total || runner.specs().length, start: JSON.parse(JSON.stringify(this.start)) }); }; Console.prototype.reportSuites = function() { var index, suite, _i, _len, _ref, _results; _ref = this.spec.getParents(); _results = []; for (index = _i = 0, _len = _ref.length; _i < _len; index = ++_i) { suite = _ref[index]; if (this.suites[suite.fullDescription]) { continue; } this.suites[suite.fullDescription] = true; _results.push(this.log({ type: "suite", label: suite.description, level: index })); } return _results; }; Console.prototype.reportSpecResults = function(spec) { var result; this.spec = new Teabag.Spec(spec); result = this.spec.result(); if (result.skipped) { return; } this.reportSuites(); switch (result.status) { case "pending": return this.trackPending(); case "failed": return this.trackFailure(); default: return this.log({ type: "spec", suite: this.spec.suiteName, label: this.spec.description, status: result.status, skipped: result.skipped }); } }; Console.prototype.trackPending = function() { var result; result = this.spec.result(); return this.log({ type: "spec", suite: this.spec.suiteName, label: this.spec.description, status: result.status, skipped: result.skipped }); }; 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, label: this.spec.description, status: result.status, skipped: result.skipped, link: this.spec.fullDescription, message: error.message, trace: error.stack || error.message || "Stack Trace Unavailable" })); } return _results; }; Console.prototype.reportRunnerResults = function() { this.log({ type: "result", elapsed: ((new Teabag.Date().getTime() - this.start.getTime()) / 1000).toFixed(5) }); return Teabag.finished = true; }; Console.prototype.log = function(obj) { if (obj == null) { obj = {}; } obj["_teabag"] = true; return Teabag.log(JSON.stringify(obj)); }; return Console; })(); }).call(this); ;FI"required_assets_digest;F"%589a52751844d3727c450f8650845dbdI" _version;F"%ffd318ca8b794f42f5029101c2cf5d91