Pop up with user information when clicking avatar on topic page

This commit is contained in:
Robin Ward
2013-10-03 12:51:30 -04:00
parent 578ef2098b
commit fc00269b7f
13 changed files with 198 additions and 20 deletions

View File

@ -25,3 +25,15 @@ test("isAllowedToUploadAFile", function() {
user.setProperties({ admin: false, moderator: true });
ok(user.isAllowedToUploadAFile("image"), "moderator can always upload a file");
});
asyncTestDiscourse("findByUsername", function() {
expect(3);
Discourse.User.findByUsername('eviltrout').then(function (user) {
present(user);
equal(user.get('username'), 'eviltrout', 'it has the correct username');
equal(user.get('name'), 'Robin Ward', 'it has the full name since it has details');
start();
});
});