o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1355714152.3908029: @value"v{I" class:EFI"ProcessedAsset;FI"logical_path;FI"teabag/base/reporters.js;FI" pathname;FI"Y/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2012-12-14T00:06:18-07:00;FI" length;FivI" digest;F"%93d06da36e5e166fb34389c962cce4caI" source;FI"v(function() { Teabag.Reporters.NormalizedSpec = (function() { function NormalizedSpec(spec) { var _base, _base1; this.spec = spec; this.fullDescription = (typeof (_base = this.spec).getFullName === "function" ? _base.getFullName() : void 0) || this.spec.fullTitle(); this.description || (this.description = this.spec.description || this.spec.title); this.link = "?grep=" + (encodeURIComponent(this.fullDescription)); this.parent = this.spec.suite || this.spec.parent; this.suiteName = (typeof (_base1 = this.parent).getFullName === "function" ? _base1.getFullName() : void 0) || this.parent.fullTitle(); this.viewId = this.spec.viewId; this.pending = this.spec.pending; } NormalizedSpec.prototype.errors = function() { var item, _i, _len, _ref, _results; if (this.spec.err) { return [this.spec.err]; } if (!this.spec.results) { return []; } _ref = this.spec.results().getItems(); _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { item = _ref[_i]; if (item.passed()) { continue; } _results.push({ message: item.message, stack: item.trace.stack }); } return _results; }; NormalizedSpec.prototype.result = function() { var results, skipped, status; status = "failed"; if (this.spec.results) { results = this.spec.results(); if (results.passed()) { status = "passed"; } skipped = results.skipped; } else { if (this.spec.state === "passed" || this.spec.state === "skipped") { status = "passed"; } skipped = this.spec.state === "skipped"; } if (this.spec.pending) { status = "pending"; } return { status: status, skipped: skipped }; }; return NormalizedSpec; })(); Teabag.Reporters.NormalizedSuite = (function() { function NormalizedSuite(suite) { var _base; this.suite = suite; this.fullDescription = (typeof (_base = this.suite).getFullName === "function" ? _base.getFullName() : void 0) || this.suite.fullTitle(); this.description = this.suite.description || this.suite.title; this.link = "?grep=" + (encodeURIComponent(this.fullDescription)); this.parent = this.getParent(); this.viewId = this.suite.viewId; } NormalizedSuite.prototype.getParent = function() { if (this.suite.parent) { if (this.suite.parent.root) { return null; } else { return this.suite.parent; } } else { return this.suite.parentSuite; } }; return NormalizedSuite; })(); Teabag.Reporters.BaseView = (function() { function BaseView() { this.elements = {}; this.build(); } BaseView.prototype.build = function(className) { return this.el = this.createEl("li", className); }; BaseView.prototype.appendTo = function(el) { return el.appendChild(this.el); }; BaseView.prototype.append = function(el) { return this.el.appendChild(el); }; BaseView.prototype.createEl = function(type, className) { var el; if (className == null) { className = ""; } el = document.createElement(type); el.className = className; return el; }; BaseView.prototype.findEl = function(id) { var _base; this.elements || (this.elements = {}); return (_base = this.elements)[id] || (_base[id] = document.getElementById("teabag-" + id)); }; BaseView.prototype.setText = function(id, value) { var el; el = this.findEl(id); return el.innerText = value; }; BaseView.prototype.setHtml = function(id, value, add) { var el; if (add == null) { add = false; } el = this.findEl(id); if (add) { return el.innerHTML += value; } else { return el.innerHTML = value; } }; BaseView.prototype.setClass = function(id, value) { var el; el = this.findEl(id); return el.className = value; }; BaseView.prototype.htmlSafe = function(str) { var el; el = document.createElement("div"); el.appendChild(document.createTextNode(str)); return el.innerHTML; }; return BaseView; })(); }).call(this); ;TI"dependency_digest;F"%ac4733235c2442fc06644e3bf06a6ed2I"required_paths;F[ I"Y/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters.coffee;FI"a/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/console.coffee;FI"^/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html.coffee;FI"l/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html/progress_view.coffee;FI"h/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html/spec_view.coffee;FI"k/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee;FI"i/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html/suite_view.coffee;FI"dependency_paths;F[{I" path;FI"R/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters;FI" mtime;FI"2012-12-16T20:14:56-07:00;FI" digest;F"%58c7533af04fd9c74a66182368276d09{I" path;FI"W/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html;FI" mtime;FI"2012-12-13T21:57:07-07:00;FI" digest;F"%4963c28ed3ff05482898b678002b6be2{I" path;FI"Y/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters.coffee;FI" mtime;FI"2012-12-14T00:06:18-07:00;FI" digest;F"%dc7fe75109e045a125f4c8a02a62bea4{I" path;FI"a/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/console.coffee;FI" mtime;FI"2012-12-16T20:14:56-07:00;FI" digest;F"%c813e3bbff2a9f32efd1de30127b3736{I" path;FI"^/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html.coffee;FI" mtime;FI"2012-12-13T23:35:32-07:00;FI" digest;F"%4c451584a45eff562eb936bfff0ef0fc{I" path;FI"l/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html/progress_view.coffee;FI" mtime;FI"2012-12-13T20:46:27-07:00;FI" digest;F"%078a6e02b0a603c5519ff287d6d94ba6{I" path;FI"h/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html/spec_view.coffee;FI" mtime;FI"2012-12-13T21:56:26-07:00;FI" digest;F"%f4af4672c4e46ce23f14757d7247a9ef{I" path;FI"k/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee;FI" mtime;FI"2012-12-13T20:33:17-07:00;FI" digest;F"%65a3546a13e20aa847cecb3e94897ecc{I" path;FI"i/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html/suite_view.coffee;FI" mtime;FI"2012-12-13T20:40:53-07:00;FI" digest;F"%4016da37093a670eec7ad40461df3772I" _version;F"%6776f581a4329e299531e1d52aa59832