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