Category List and Topic View Integration Test

This commit is contained in:
Robin Ward
2013-06-20 15:02:02 -04:00
parent 3775a9c11d
commit 3257bef387
7 changed files with 43 additions and 4 deletions

View File

@ -51,6 +51,14 @@ sinon.config = {
useFakeServer: false
};
window.assetPath = function() { return null };
var oldAjax = $.ajax;
$.ajax = function() {
console.error("Discourse.Ajax called in test environment (" + arguments[0] + ")");
return oldAjax.apply(this, arguments);
};
// Trick JSHint into allow document.write
var d = document;
d.write('<div id="qunit-scratch" style="display:none"></div>');