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-07-04 16:19:59 -04:00
|
|
|
expect(2);
|
2013-06-13 15:08:42 -04:00
|
|
|
|
|
|
|
visit("/").then(function() {
|
|
|
|
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-07-04 16:19:59 -04:00
|
|
|
});
|
2013-06-13 15:08:42 -04:00
|
|
|
|
2013-07-04 16:19:59 -04:00
|
|
|
test("List one Category", function() {
|
|
|
|
expect(2);
|
|
|
|
|
|
|
|
visit("/category/bug").then(function() {
|
|
|
|
ok(exists("#topic-list"), "The list of topics was rendered");
|
|
|
|
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() {
|
2013-07-04 16:19:59 -04:00
|
|
|
expect(1);
|
2013-06-20 15:02:02 -04:00
|
|
|
|
|
|
|
visit("/categories").then(function() {
|
|
|
|
ok(exists('.category-list-item'), "has a list of categories");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
2013-06-13 15:08:42 -04:00
|
|
|
|