spec/dummy/tmp/cache/assets/CE1/730/sprockets%2Fa1678837061e18d7aca0286c07acf676 in teabag-0.3.5 vs spec/dummy/tmp/cache/assets/CE1/730/sprockets%2Fa1678837061e18d7aca0286c07acf676 in teabag-0.3.6
- old
+ new
@@ -1,8 +1,8 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1356059376.564807:@value"÷`{I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1356300321.955628:@value"Ze{I"
class:EFI"BundledAsset; 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-20T18:59:53-07:00; FI"length; Fi_I"digest; F"%de7b2cd2721b3192d8e7f3137fafd89aI"source; FI"_(function() {
+mtime; FI"2012-12-23T15:05:20-07:00; FI"length; FixcI"digest; F"%0762dd1ff558e29ed1e193a39e659ba9I"source; FI"xc(function() {
Teabag.Reporters.NormalizedSpec = (function() {
function NormalizedSpec(spec) {
var _base, _base1;
@@ -37,10 +37,25 @@
});
}
return _results;
};
+ NormalizedSpec.prototype.getParents = function() {
+ var parent;
+ if (this.parents) {
+ return this.parents;
+ }
+ this.parents || (this.parents = []);
+ parent = this.parent;
+ while (parent) {
+ parent = new Teabag.Reporters.NormalizedSuite(parent);
+ this.parents.unshift(parent);
+ parent = parent.parent;
+ }
+ return this.parents;
+ };
+
NormalizedSpec.prototype.result = function() {
var results, skipped, status;
status = "failed";
if (this.spec.results) {
results = this.spec.results();
@@ -93,10 +108,13 @@
return NormalizedSuite;
})();
+}).call(this);
+(function() {
+
Teabag.Reporters.BaseView = (function() {
function BaseView() {
this.elements = {};
this.build();
@@ -166,97 +184,10 @@
})();
}).call(this);
(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().getTime();
- }
-
- Console.prototype.reportSpecResults = function(spec) {
- var result;
- this.spec = new Teabag.Reporters.NormalizedSpec(spec);
- result = this.spec.result();
- switch (result.status) {
- case "pending":
- return this.trackPending();
- case "failed":
- return this.trackFailure();
- default:
- return this.log({
- type: "spec",
- suite: this.spec.suiteName,
- spec: this.spec.description,
- status: result.status,
- skipped: result.skipped,
- full_description: this.spec.fullDescription
- });
- }
- };
-
- Console.prototype.trackPending = function() {
- var result;
- result = this.spec.result();
- return this.log({
- type: "spec",
- suite: this.spec.suiteName,
- spec: this.spec.description,
- status: result.status,
- skipped: result.skipped,
- full_description: this.spec.fullDescription
- });
- };
-
- 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,
- spec: this.spec.description,
- status: result.status,
- skipped: result.skipped,
- full_description: this.spec.fullDescription,
- link: this.spec.link,
- message: error.message,
- trace: error.stack || error.message || "Stack Trace Unavailable"
- }));
- }
- return _results;
- };
-
- Console.prototype.reportRunnerResults = function() {
- this.log({
- type: "results",
- elapsed: ((new Teabag.Date().getTime() - this.start) / 1000).toFixed(5)
- });
- return Teabag.finished = true;
- };
-
- Console.prototype.log = function(obj) {
- if (obj == null) {
- obj = {};
- }
- obj["_teabag"] = true;
- return Teabag.console.log(JSON.stringify(obj));
- };
-
- return Console;
-
- })();
-
-}).call(this);
-(function() {
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
__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 = (function(_super) {
@@ -736,6 +667,119 @@
return SuiteView;
})(Teabag.Reporters.BaseView);
}).call(this);
-; FI"required_assets_digest; F"%ac4733235c2442fc06644e3bf06a6ed2I"
_version; F"%6776f581a4329e299531e1d52aa59832
+(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.Reporters.NormalizedSpec(spec);
+ result = this.spec.result();
+ 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.link,
+ 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.console.log(JSON.stringify(obj));
+ };
+
+ return Console;
+
+ })();
+
+}).call(this);
+; FI"required_assets_digest; F"%43ccbbcbd358061717ae44cb87172b08I"
_version; F"%6776f581a4329e299531e1d52aa59832
\ No newline at end of file