Merge pull request #2599 from riking/disable-logster

Disable logster error reporting during tests
This commit is contained in:
Sam 2014-07-29 12:29:23 +10:00
commit b00b5609e6

View file

@ -83,6 +83,13 @@ Discourse.runInitializers();
Discourse.start();
Discourse.Route.mapRoutes();
// disable logster error reporting
if (window.Logster) {
Logster.enabled = false;
} else {
window.Logster = { enabled: false };
}
QUnit.testStart(function() {
// Allow our tests to change site settings and have them reset before the next test
Discourse.SiteSettings = jQuery.extend(true, {}, Discourse.SiteSettingsOriginal);