2013-06-20 13:58:54 -04:00
|
|
|
integration("List Topics");
|
2013-06-13 15:08:42 -04:00
|
|
|
|
2013-06-20 15:02:02 -04:00
|
|
|
test("Default List", function() {
|
2013-06-13 15:08:42 -04:00
|
|
|
|
|
|
|
visit("/").then(function() {
|
2013-06-19 15:06:23 -04:00
|
|
|
expect(2);
|
|
|
|
|
2013-06-13 15:08:42 -04:00
|
|
|
ok(exists("#topic-list"), "The list of topics was rendered");
|
2013-06-20 15:02:02 -04:00
|
|
|
ok(exists('#topic-list .topic-list-item'), "has topics");
|
2013-06-13 15:08:42 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
2013-06-20 15:02:02 -04:00
|
|
|
test("Categories List", function() {
|
|
|
|
|
|
|
|
visit("/categories").then(function() {
|
|
|
|
expect(1);
|
|
|
|
|
|
|
|
ok(exists('.category-list-item'), "has a list of categories");
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
2013-06-13 15:08:42 -04:00
|
|
|
|