spec/dummy/tmp/cache/assets/D50/D70/sprockets%2Fe2a3e6c95b11e0801a4eebae3a026026 in teabag-0.3.5 vs spec/dummy/tmp/cache/assets/D50/D70/sprockets%2Fe2a3e6c95b11e0801a4eebae3a026026 in teabag-0.3.6
- old
+ new
@@ -1,8 +1,8 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1356062005.759257:@value"{I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1356388025.202871:@value"+{I"
class:EFI"ProcessedAsset; FI"logical_path; FI"teabag/mocha.js; FI"
pathname; FI"P/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/mocha.coffee; FI"content_type; FI"application/javascript; FI"
-mtime; FI"2012-12-12T23:56:22-07:00; FI"length; FiÃI"digest; F"%e3215d4153470cbb0230f53313c8610cI"source; FI"Ã(function() {
+mtime; FI"2012-12-24T15:26:57-07:00; FI"length; Fiþ I"digest; F"%2500c0ca99ebeab64bc1be51a82cf06aI"source; FI"þ (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.Runner = (function(_super) {
var env;
@@ -16,38 +16,100 @@
env.run();
}
Runner.prototype.setup = function() {
var reporter;
- if (navigator.userAgent.match(/PhantomJS/)) {
- reporter = Teabag.Reporters.Console;
- } else {
- reporter = Teabag.Reporters.HTML;
- }
+ reporter = this.getReporter();
reporter.filter = this.params["grep"];
return env.setup({
reporter: reporter
});
};
return Runner;
})(Teabag.Runner);
+ Teabag.Spec = (function() {
+
+ function Spec(spec) {
+ this.spec = spec;
+ this.fullDescription = this.spec.fullTitle();
+ this.description = this.spec.title;
+ this.link = "?grep=" + (encodeURIComponent(this.fullDescription));
+ this.parent = this.spec.parent;
+ this.suiteName = this.parent.fullTitle();
+ this.viewId = this.spec.viewId;
+ this.pending = this.spec.pending;
+ }
+
+ Spec.prototype.errors = function() {
+ if (!this.spec.err) {
+ return [];
+ }
+ return [this.spec.err];
+ };
+
+ 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 status;
+ status = "failed";
+ if (this.spec.state === "passed" || this.spec.state === "skipped") {
+ status = "passed";
+ }
+ if (this.spec.pending) {
+ status = "pending";
+ }
+ return {
+ status: status,
+ skipped: this.spec.state === "skipped"
+ };
+ };
+
+ return Spec;
+
+ })();
+
+ Teabag.Suite = (function() {
+
+ function Suite(suite) {
+ this.suite = suite;
+ this.fullDescription = this.suite.fullTitle();
+ this.description = this.suite.title;
+ this.link = "?grep=" + (encodeURIComponent(this.fullDescription));
+ this.parent = this.suite.parent.root ? null : this.suite.parent;
+ this.viewId = this.suite.viewId;
+ }
+
+ return Suite;
+
+ })();
+
}).call(this);
-; TI"dependency_digest; F"%a26f26f9ebf4baa4ce87ab6880ef8ad2I"required_paths; F[I"N/Users/jejacks0n/Projects/teabag/vendor/assets/javascripts/mocha-1.7.3.js; FI"V/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/teabag.coffee; FI"V/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/runner.coffee; FI"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"b/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/mocha/reporters/console.coffee; FI"_/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/mocha/reporters/html.coffee; FI"P/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/mocha.coffee; FI"dependency_paths; F[{I" path; FI"S/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/mocha/reporters; FI"
-mtime; FI"2012-12-13T21:42:55-07:00; FI"digest; F"%7f22ce42b086b2d720deeaad7d2c2eaf{I" path; FI"P/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/mocha.coffee; FI"
-mtime; FI"2012-12-12T23:56:22-07:00; FI"digest; F"%a3bbda85abbe7049f58df37538c3d96b{I" path; FI"N/Users/jejacks0n/Projects/teabag/vendor/assets/javascripts/mocha-1.7.3.js; FI"
+; TI"dependency_digest; F"%516059c14640659f993fd5032a38b89dI"required_paths; F[I"N/Users/jejacks0n/Projects/teabag/vendor/assets/javascripts/mocha-1.7.3.js; FI"V/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/teabag.coffee; FI"V/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/runner.coffee; FI"h/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html/base_view.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"a/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/console.coffee; FI"b/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/mocha/reporters/console.coffee; FI"_/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/mocha/reporters/html.coffee; FI"P/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/mocha.coffee; FI"dependency_paths; F[{I" path; FI"P/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/mocha.coffee; FI"
+mtime; FI"2012-12-24T15:26:57-07:00; FI"digest; F"%4c1bc3d786076eb12364992077614791{I" path; FI"N/Users/jejacks0n/Projects/teabag/vendor/assets/javascripts/mocha-1.7.3.js; FI"
mtime; FI"2012-12-06T18:22:04-07:00; FI"digest; F"%a4c3e93d87f0efa646843848e08050a9{I" path; FI"V/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/teabag.coffee; FI"
-mtime; FI"2012-12-16T20:14:50-07:00; FI"digest; F"%988ed097add0855e75d9af72cfe28146{I" path; FI"V/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/runner.coffee; FI"
-mtime; FI"2012-12-12T16:01:50-07:00; FI"digest; F"%754c2544eaa4336c105b44ed842b3516{I" path; FI"R/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters; FI"
-mtime; FI"2012-12-20T18:59:53-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-20T18:59:53-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"%4016da37093a670eec7ad40461df3772{I" path; FI"b/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/mocha/reporters/console.coffee; FI"
-mtime; FI"2012-12-10T23:36:31-07:00; FI"digest; F"%31f5c6f88f327259c3b5572fa9f98c53{I" path; FI"_/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/mocha/reporters/html.coffee; FI"
+mtime; FI"2012-12-24T14:54:41-07:00; FI"digest; F"%0d6565f2d24b02b318e42ee35abd2964{I" path; FI"V/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/runner.coffee; FI"
+mtime; FI"2012-12-23T17:27:29-07:00; FI"digest; F"%2ad72bb1fc9216129628bdf26113f35c{I" path; FI"^/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html.coffee; FI"
+mtime; FI"2012-12-23T15:49:28-07:00; FI"digest; F"%7fef54837682dee96a8f32bfb2e46a56{I" path; FI"h/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html/base_view.coffee; FI"
+mtime; FI"2012-12-23T15:44:52-07:00; FI"digest; F"%6044e074812a7e19861a7a2675151888{I" path; FI"l/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/html/progress_view.coffee; FI"
+mtime; FI"2012-12-23T15:13:03-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-23T15:13:07-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-23T15:12:59-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-23T15:13:11-07:00; FI"digest; F"%fa964355aeeb57aa8164ab442fef9a04{I" path; FI"a/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/reporters/console.coffee; FI"
+mtime; FI"2012-12-23T17:19:22-07:00; FI"digest; F"%162e42ee52888ef4af15e7983a34f666{I" path; FI"b/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/mocha/reporters/console.coffee; FI"
+mtime; FI"2012-12-24T14:57:09-07:00; FI"digest; F"%a39bb0f18d50283d9071caa794187493{I" path; FI"_/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/mocha/reporters/html.coffee; FI"
mtime; FI"2012-12-13T21:42:55-07:00; FI"digest; F"%6381f4c117e5e93e13b9887403988e44I"
_version; F"%6776f581a4329e299531e1d52aa59832
\ No newline at end of file