o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1356300832.6952431: @value"Û {I" class:EFI"BundledAsset;FI"logical_path;FI"teabag/base/models.js;FI" pathname;FI"V/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/models.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2012-12-23T15:12:26-07:00;FI" length;Fiÿ I" digest;F"%bed4e6c209693d3637acb48c1159fcdcI" source;FI"ÿ (function() { Teabag.Spec = (function() { function Spec(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; } Spec.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; }; Spec.prototype.getParents = function() { var parent; if (this.parents) { return this.parents; } this.parents || (this.parents = []); parent = this.parent; while (parent) { parent = new Teabag.Suite(parent); this.parents.unshift(parent); parent = parent.parent; } return this.parents; }; Spec.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 Spec; })(); Teabag.Suite = (function() { function Suite(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; } Suite.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 Suite; })(); }).call(this); ;FI"required_assets_digest;F"%4795ec8d6893492ea7236939c2e789fcI" _version;F"%6776f581a4329e299531e1d52aa59832