spec/dummy/tmp/cache/assets/DF6/0E0/sprockets%2F85b10db6e1afe643aba6d396abdd77f0 in teabag-0.4.0 vs spec/dummy/tmp/cache/assets/DF6/0E0/sprockets%2F85b10db6e1afe643aba6d396abdd77f0 in teabag-0.4.1
- old
+ new
@@ -1,8 +1,8 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1356489211.193454:@value"É;{I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1356562379.8873:@value"›?{I"
class:EFI"BundledAsset; 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-25T19:00:28-07:00; FI"length; Fi÷9I"digest; F"%35211c51ae2c5cb51b92019bb7cc0e6aI"source; FI"÷9;(function(){
+mtime; FI"2012-12-26T15:52:57-07:00; FI"length; FiÉ=I"digest; F"%cf47c1a7a1659ffa2ef4a7982c196446I"source; FI"É=;(function(){
// CommonJS require()
function require(p){
@@ -5021,11 +5021,11 @@
Teabag.defer = false;
Teabag.slow = 75;
- Teabag.fixturePath = null;
+ Teabag.root = null;
Teabag.finished = false;
Teabag.Reporters = {};
@@ -5072,11 +5072,11 @@
function Runner() {
if (this.constructor.run) {
return;
}
this.constructor.run = true;
- this.fixturePath = Teabag.fixturePath;
+ this.fixturePath = "" + Teabag.root + "/fixtures";
this.params = this.getParams();
this.setup();
}
Runner.prototype.getParams = function() {
@@ -5223,21 +5223,36 @@
this.buildLayout();
this.el = this.findEl("report-all");
this.setText("env-info", this.envInfo());
this.setText("version", Teabag.version);
this.findEl("toggles").onclick = this.toggleConfig;
+ this.findEl("suite-select").onchange = this.changeSuite;
this.showConfiguration();
return this.buildProgress();
};
HTML.prototype.buildLayout = function() {
var el;
el = this.createEl("div");
document.body.appendChild(el);
- return el.innerHTML = "<div class=\"teabag-clearfix\">\n <div id=\"teabag-title\">\n <h1>Teabag</h1>\n <ul>\n <li>version: <b id=\"teabag-version\"></b></li>\n <li id=\"teabag-env-info\"></li>\n </ul>\n </div>\n <div id=\"teabag-progress\"></div>\n <ul id=\"teabag-stats\">\n <li>passes: <b id=\"teabag-stats-passes\">0</b></li>\n <li>failures: <b id=\"teabag-stats-failures\">0</b></li>\n <li>skipped: <b id=\"teabag-stats-skipped\">0</b></li>\n <li>duration: <b id=\"teabag-stats-duration\">∞</b></li>\n </ul>\n</div>\n\n<div id=\"teabag-controls\" class=\"teabag-clearfix\">\n <div id=\"teabag-toggles\">\n <button id=\"teabag-use-catch\">Use Try/Catch</button>\n <button id=\"teabag-build-full-report\">Build Full Report</button>\n <button id=\"teabag-display-progress\">Display Progress</button>\n </div>\n <div id=\"teabag-filtered\">\n <button onclick=\"window.location.href = window.location.pathname\">Run All Specs</button>\n </div>\n</div>\n\n<hr/>\n\n<div id=\"teabag-report\">\n <ol id=\"teabag-report-failures\"></ol>\n <ol id=\"teabag-report-all\"></ol>\n</div>";
+ return el.innerHTML = "<div class=\"teabag-clearfix\">\n <div id=\"teabag-title\">\n <h1>Teabag</h1>\n <ul>\n <li>version: <b id=\"teabag-version\"></b></li>\n <li id=\"teabag-env-info\"></li>\n </ul>\n </div>\n <div id=\"teabag-progress\"></div>\n <ul id=\"teabag-stats\">\n <li>passes: <b id=\"teabag-stats-passes\">0</b></li>\n <li>failures: <b id=\"teabag-stats-failures\">0</b></li>\n <li>skipped: <b id=\"teabag-stats-skipped\">0</b></li>\n <li>duration: <b id=\"teabag-stats-duration\">∞</b></li>\n </ul>\n</div>\n\n<div id=\"teabag-controls\" class=\"teabag-clearfix\">\n <div id=\"teabag-toggles\">\n <button id=\"teabag-use-catch\" title=\"Toggle using try/catch wrappers when possible\">Try/Catch</button>\n <button id=\"teabag-build-full-report\" title=\"Toggle building the full report\">Full Report</button>\n <button id=\"teabag-display-progress\" title=\"Toggle displaying progress as tests run\">Progress</button>\n </div>\n <div id=\"teabag-filter\">\n " + (this.buildSuiteSelect()) + "\n <button onclick=\"window.location.href = window.location.pathname\">Run All</button>\n <span id=\"teabag-filter-info\">\n </div>\n</div>\n\n<hr/>\n\n<div id=\"teabag-report\">\n <ol id=\"teabag-report-failures\"></ol>\n <ol id=\"teabag-report-all\"></ol>\n</div>";
};
+ HTML.prototype.buildSuiteSelect = function() {
+ var options, suite, _i, _len, _ref;
+ if (Teabag.suites.all.length === 1) {
+ return "";
+ }
+ options = [];
+ _ref = Teabag.suites.all;
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
+ suite = _ref[_i];
+ options.push("<option" + (Teabag.suites.active === suite ? " selected='selected'" : "") + " value=\"" + suite + "\">" + suite + " suite</option>");
+ }
+ return "<select id=\"teabag-suite-select\">" + (options.join("")) + "</select>";
+ };
+
HTML.prototype.buildProgress = function() {
this.progress = Teabag.Reporters.HTML.ProgressView.create(this.config["display-progress"]);
return this.progress.appendTo(this.findEl("progress"));
};
@@ -5336,12 +5351,12 @@
HTML.prototype.setFilter = function(filter) {
if (!filter) {
return;
}
- this.setClass("filtered", "teabag-filtered");
- return this.setHtml("filtered", "" + filter, true);
+ this.setClass("filter", "teabag-filtered");
+ return this.setHtml("filter-info", "" + filter, true);
};
HTML.prototype.readConfig = function() {
var config;
if (config = this.cookie("teabag")) {
@@ -5359,10 +5374,14 @@
this.config[name] = !this.config[name];
this.cookie("teabag", this.config);
return this.refresh();
};
+ HTML.prototype.changeSuite = function() {
+ return window.location.href = "/teabag/" + this.options[this.options.selectedIndex].value;
+ };
+
HTML.prototype.refresh = function() {
return window.location.href = window.location.href;
};
HTML.prototype.cookie = function(name, value) {
@@ -5962,6 +5981,6 @@
return Suite;
})();
}).call(this);
-; TI"required_assets_digest; F"%43da23a42f4c597047fa8499f6843401I"
_version; F"%6776f581a4329e299531e1d52aa59832
+; TI"required_assets_digest; F"%19b44bfaf90a39eb59caf54f4e09df54I"
_version; F"%6776f581a4329e299531e1d52aa59832
\ No newline at end of file