2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-11 21:04:42 +08:00

Add acceptance tests for plugin outlets

This commit is contained in:
Robin Ward 2016-11-22 14:02:47 -05:00
parent 86deec3528
commit 217007ff54
4 changed files with 69 additions and 0 deletions

View file

@ -63,6 +63,10 @@ export default function() {
}] });
});

this.get(`/users/eviltrout/emails.json`, () => {
return response({ email: 'eviltrout@example.com' });
});

this.get('/users/eviltrout.json', () => {
const json = fixturesByUrl['/users/eviltrout.json'];
json.user.can_edit = loggedIn();