update message bus for .stop() support, stop the message bus during test

This commit is contained in:
Sam
2013-11-25 18:01:03 +11:00
parent 95c968d7b7
commit 2eee7433f0
2 changed files with 7 additions and 4 deletions

View File

@ -93,6 +93,9 @@ $.ajax = function() {
return oldAjax.apply(this, arguments);
};
// Stop the message bus so we don't get ajax calls
Discourse.MessageBus.stop();
// Trick JSHint into allow document.write
var d = document;
d.write('<div id="ember-testing-container"><div id="ember-testing"></div></div>');