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

@ -1,14 +1,25 @@
integration("List Topics");
test("/", function() {
test("Default List", function() {
visit("/").then(function() {
expect(2);
ok(exists("#topic-list"), "The list of topics was rendered");
ok(count('#topic-list .topic-list-item') > 0, "has topics");
ok(exists('#topic-list .topic-list-item'), "has topics");
});
});
test("Categories List", function() {
visit("/categories").then(function() {
expect(1);
ok(exists('.category-list-item'), "has a list of categories");
});
});