2013-07-04 16:19:59 -04:00
|
|
|
integration("User");
|
|
|
|
|
2013-07-16 16:16:37 -04:00
|
|
|
test("Activity Streams", function() {
|
|
|
|
expect(14);
|
2013-07-04 16:19:59 -04:00
|
|
|
|
2013-07-16 16:16:37 -04:00
|
|
|
var streamTest = function(url) {
|
|
|
|
visit(url).then(function() {
|
2013-10-10 12:48:26 -04:00
|
|
|
ok(exists(".user-main"), "The main content is rendered");
|
|
|
|
ok(exists(".user-navigation"), "The navigation is rendered");
|
2013-07-16 16:16:37 -04:00
|
|
|
});
|
|
|
|
};
|
2013-07-04 16:19:59 -04:00
|
|
|
|
2013-07-16 16:16:37 -04:00
|
|
|
streamTest("/users/eviltrout");
|
|
|
|
streamTest("/users/eviltrout/activity/topics");
|
|
|
|
streamTest("/users/eviltrout/activity/posts");
|
|
|
|
streamTest("/users/eviltrout/activity/replies");
|
|
|
|
streamTest("/users/eviltrout/activity/likes-given");
|
|
|
|
streamTest("/users/eviltrout/activity/likes-received");
|
|
|
|
streamTest("/users/eviltrout/activity/edits");
|
2013-07-04 16:19:59 -04:00
|
|
|
|
|
|
|
});
|