o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357715673.224869: @value"i {I" class:EFI"BundledAsset;FI"logical_path;FI",teabag/base/reporters/html/spec_view.js;FI" pathname;FI"h/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html/spec_view.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-01T20:38:17-07:00;FI" length;Fii I" digest;F"%e5d78fca787d6f4e1bfa20bde657960dI" source;FI"i (function() { var __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; Teabag.Reporters.HTML.SpecView = (function(_super) { var viewId; __extends(SpecView, _super); viewId = 0; function SpecView(spec, reporter) { this.spec = spec; this.reporter = reporter; this.views = this.reporter.views; this.spec.viewId = viewId += 1; this.views.specs[this.spec.viewId] = this; SpecView.__super__.constructor.apply(this, arguments); } SpecView.prototype.build = function() { var classes; classes = ["spec"]; if (this.spec.pending) { classes.push("state-pending"); } SpecView.__super__.build.call(this, classes.join(" ")); this.el.innerHTML = "" + this.spec.description + ""; this.parentView = this.buildParent(); return this.parentView.append(this.el); }; SpecView.prototype.buildParent = function() { var parent, view; parent = this.spec.parent; if (parent.viewId) { return this.views.suites[parent.viewId]; } else { view = new Teabag.Reporters.HTML.SuiteView(parent, this.reporter); return this.views.suites[view.suite.viewId] = view; } }; SpecView.prototype.buildErrors = function() { var div, error, html, _i, _len, _ref; div = this.createEl("div"); html = ""; _ref = this.spec.errors(); for (_i = 0, _len = _ref.length; _i < _len; _i++) { error = _ref[_i]; html += "" + (this.htmlSafe(error.message)) + "
" + (this.htmlSafe(error.stack || "Stack trace unavailable")); } div.innerHTML = html; return this.append(div); }; SpecView.prototype.updateState = function(state, elapsed) { var classes, result, _base; result = this.spec.result(); classes = ["state-" + state]; if (elapsed > Teabag.slow) { classes.push("slow"); } if (state !== "failed") { this.el.innerHTML += "" + elapsed + "ms"; } this.el.className = classes.join(" "); if (result.status !== "passed") { this.buildErrors(); } return typeof (_base = this.parentView).updateState === "function" ? _base.updateState(state) : void 0; }; return SpecView; })(Teabag.Reporters.BaseView); }).call(this); ;FI"required_assets_digest;F"%c4bd3d02e2e2165f3d75cf00882f998eI" _version;F"%6776f581a4329e299531e1d52aa59832