spec/dummy/tmp/cache/assets/C59/250/sprockets%2Fa80d3fe493d2476e58c4323996064512 in teabag-0.5.5 vs spec/dummy/tmp/cache/assets/C59/250/sprockets%2Fa80d3fe493d2476e58c4323996064512 in teabag-0.6.0

- old
+ new

@@ -1,8 +1,8 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1360718173.908287: @value"ú}{I" +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1361302428.96751: @value"´~{I" class:EFI"BundledAsset;FI"logical_path;FI"teabag/base/teabag.js;FI" pathname;FI"V/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/base/teabag.coffee;FI"content_type;FI"application/javascript;FI" -mtime;FI"2013-02-12T18:14:07-07:00;FI" length;Fi|I" digest;F"%f872fb594b4c4725259571cbf124bb1dI" source;FI"|(function() { +mtime;FI"2013-02-19T12:10:13-07:00;FI" length;FiØ|I" digest;F"%3a2f38f6502fe4f6dfee7d592ebdc354I" source;FI"Ø|(function() { this.Teabag = (function() { function Teabag() {} @@ -20,12 +20,10 @@ Teabag.Date = Date; Teabag.location = window.location; - Teabag.console = window.console; - Teabag.messages = []; Teabag.execute = function() { if (this.defer) { this.defer = false; @@ -39,11 +37,11 @@ var dep, deps, file, parts, path, paths, _i, _j, _len, _len1; if (all == null) { all = []; } deps = []; - if ((paths = window.location.search.match(/[\?&]file(\[\])?=[^&\?]*/gi)) === null) { + if ((paths = this.location.search.match(/[\?&]file(\[\])?=[^&\?]*/gi)) === null) { return all; } for (_i = 0, _len = paths.length; _i < _len; _i++) { path = paths[_i]; parts = decodeURIComponent(path.replace(/\+/g, " ")).match(/\/(.+)\.(js|js.coffee|coffee)$/i); @@ -60,13 +58,16 @@ } return deps; }; Teabag.log = function() { - var _ref; this.messages.push(arguments[0]); - return (_ref = this.console).log.apply(_ref, arguments); + try { + return console.log.apply(console, arguments); + } catch (e) { + throw new Error("Unable to use console.log for logging"); + } }; Teabag.getMessages = function() { var messages; messages = this.messages; @@ -465,11 +466,11 @@ } return this.setHtml("filter-list", "<li>" + (this.filters.join("</li><li>")), true); }; HTML.prototype.reportRunnerStarting = function(runner) { - this.total.exist = runner.total || runner.specs().length; + this.total.exist = runner.total || (typeof runner.specs === "function" ? runner.specs().length : void 0) || 0; if (this.total.exist) { return this.setText("stats-duration", "..."); } }; @@ -917,11 +918,11 @@ } Console.prototype.reportRunnerStarting = function(runner) { return this.log({ type: "runner", - total: runner.total || runner.specs().length, + total: runner.total || (typeof runner.specs === "function" ? runner.specs().length : void 0) || 0, start: JSON.parse(JSON.stringify(this.start)) }); }; Console.prototype.reportSuites = function() { @@ -1001,11 +1002,12 @@ }; Console.prototype.reportRunnerResults = function() { this.log({ type: "result", - elapsed: ((new Teabag.Date().getTime() - this.start.getTime()) / 1000).toFixed(5) + elapsed: ((new Teabag.Date().getTime() - this.start.getTime()) / 1000).toFixed(5), + coverage: window.__coverage__ }); return Teabag.finished = true; }; Console.prototype.log = function(obj) { @@ -1019,6 +1021,6 @@ return Console; })(); }).call(this); -;FI"required_assets_digest;F"%239d76942d47bbd9b1aae6887e14e245I" _version;F"%6776f581a4329e299531e1d52aa59832 +;FI"required_assets_digest;F"%b76b96bb0f89bb360b49e4b1446cb7feI" _version;F"%6776f581a4329e299531e1d52aa59832 \ No newline at end of file