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();