2013-07-04 15:19:59 -05:00
|
|
|
integration("User");
|
|
|
|
|
2013-07-16 15:16:37 -05:00
|
|
|
test("Activity Streams", function() {
|
|
|
|
expect(14);
|
2013-07-04 15:19:59 -05:00
|
|
|
|
2013-07-16 15:16:37 -05:00
|
|
|
var streamTest = function(url) {
|
|
|
|
visit(url).then(function() {
|
|
|
|
ok(exists(".user-heading"), "The heading is rendered");
|
2013-07-24 16:15:21 -05:00
|
|
|
ok(exists("#user-activity"), "The activity is rendered");
|
2013-07-16 15:16:37 -05:00
|
|
|
});
|
|
|
|
};
|
2013-07-04 15:19:59 -05:00
|
|
|
|
2013-07-16 15:16:37 -05: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 15:19:59 -05:00
|
|
|
|
|
|
|
});
|