Experiment: QUnit for integration Ember integration tests

This commit is contained in:
Robin Ward
2013-06-12 11:56:59 -04:00
parent 8c888f424b
commit a104c37d63
7 changed files with 86 additions and 1 deletions

View File

@ -0,0 +1,23 @@
module("Header", {
setup: function() {
Ember.run(Discourse, Discourse.advanceReadiness);
},
teardown: function() {
$('#discourse-modal').modal('hide')
$('#discourse-modal').remove()
Discourse.reset();
}
});
test("/", function() {
expect(2);
visit("/").then(function() {
ok(exists("header"), "The header was rendered");
ok(exists("#site-logo"), "The logo was shown");
});
});