spec/dummy/tmp/cache/assets/C72/150/sprockets%2F4194031b4b51b6422c14ac697e3455e5 in teabag-0.5.5 vs spec/dummy/tmp/cache/assets/C72/150/sprockets%2F4194031b4b51b6422c14ac697e3455e5 in teabag-0.6.0

- old
+ new

@@ -1,8 +1,8 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1360718179.0417469: @value"”Š{I" +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1361302184.605798: @value"N‹{I" class:EFI"BundledAsset;FI"logical_path;FI"teabag/qunit.js;FI" pathname;FI"P/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/qunit.coffee;FI"content_type;FI"application/javascript;FI" -mtime;FI"2013-02-12T18:14:07-07:00;FI" length;FiˆI" digest;F"%5a49f12cec123238aaa429c53f764ce4I" source;FI"ˆ/** +mtime;FI"2013-02-19T12:10:13-07:00;FI" length;Fi|‰I" digest;F"%5b9608ecc477f52c3daa3f49fc3a9ed1I" source;FI"|‰/** * QUnit v1.10.0 - A JavaScript Unit Testing Framework * * http://qunitjs.com * * Copyright 2012 jQuery Foundation and other contributors @@ -1998,12 +1998,10 @@ Teabag.Date = Date; Teabag.location = window.location; - Teabag.console = window.console; - Teabag.messages = []; Teabag.execute = function() { if (this.defer) { this.defer = false; @@ -2017,11 +2015,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); @@ -2038,13 +2036,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; @@ -2443,11 +2444,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", "..."); } }; @@ -2895,11 +2896,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() { @@ -2979,11 +2980,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) { @@ -3286,6 +3288,6 @@ originalReset(); return Teabag.fixture.cleanup(); }; }).call(this); -;TI"required_assets_digest;F"%490f44e9993f02f0092417600e07ebf2I" _version;F"%6776f581a4329e299531e1d52aa59832 +;TI"required_assets_digest;F"%ec8950c6ae82c87349bd6669226bbffaI" _version;F"%6776f581a4329e299531e1d52aa59832 \ No newline at end of file