o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1371410624.716695: @value"M{I" class:EFI"ProcessedAsset;FI"logical_path;FI"'teaspoon/base/reporters/console.js;FI" pathname;FI"e/Users/jejacks0n/Projects/teaspoon/app/assets/javascripts/teaspoon/base/reporters/console.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-06-16T11:48:01-06:00;FI" length;Fiò I" digest;F"%2662cd2a035ca2ef7f8c606996c27b3eI" source;FI"ò (function() { var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; Teaspoon.Reporters.Console = (function() { function Console() { this.reportRunnerResults = __bind(this.reportRunnerResults, this); this.start = new Teaspoon.Date(); this.suites = {}; } Console.prototype.reportRunnerStarting = function(runner) { return this.log({ type: "runner", total: runner.total || (typeof runner.specs === "function" ? runner.specs().length : void 0) || 0, 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 Teaspoon.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 Teaspoon.Date().getTime() - this.start.getTime()) / 1000).toFixed(5), coverage: window.__coverage__ }); return Teaspoon.finished = true; }; Console.prototype.log = function(obj) { if (obj == null) { obj = {}; } obj["_teaspoon"] = true; return Teaspoon.log(JSON.stringify(obj)); }; return Console; })(); }).call(this); ;TI"dependency_digest;F"%de344d58faeb09248fbd4abca7594c56I"required_paths;F[I"e/Users/jejacks0n/Projects/teaspoon/app/assets/javascripts/teaspoon/base/reporters/console.coffee;FI"dependency_paths;F[{I" path;FI"e/Users/jejacks0n/Projects/teaspoon/app/assets/javascripts/teaspoon/base/reporters/console.coffee;FI" mtime;FI"2013-06-16T11:48:01-06:00;FI" digest;F"%24631dd93ca670b7441ffa22e18cd9c1I" _version;F"%6776f581a4329e299531e1d52aa59832