FIX: Don't cloak in test mode. Should help with intermittant failures

This commit is contained in:
Robin Ward 2015-04-16 11:47:18 -04:00
parent 2459f52c71
commit c216b3affe
2 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,7 @@ test("Enter a Topic", () => {
visit("/t/internationalization-localization/280/1"); visit("/t/internationalization-localization/280/1");
andThen(() => { andThen(() => {
ok(exists("#topic"), "The topic was rendered"); ok(exists("#topic"), "The topic was rendered");
ok(exists("#topic .post-cloak"), "The topic has cloaked posts"); ok(exists("#topic .cooked"), "The topic has cooked posts");
}); });
}); });

View File

@ -115,6 +115,9 @@ QUnit.testStart(function(ctx) {
} }
}); });
// Don't cloak in testing
Ember.CloakedCollectionView = Ember.CollectionView;
QUnit.testDone(function() { QUnit.testDone(function() {
Ember.run.debounce = origDebounce; Ember.run.debounce = origDebounce;
window.sandbox.restore(); window.sandbox.restore();