Adds acceptance test for user preferences

This commit is contained in:
Robin Ward
2015-05-13 10:42:36 -04:00
parent d90e0fe66b
commit ea51095ef9
7 changed files with 50 additions and 8 deletions

View File

@ -87,6 +87,18 @@ export default function() {
return response(json);
});
this.get('/users/eviltrout.json', () => {
const json = fixturesByUrl['/users/eviltrout.json'];
if (loggedIn()) {
json.user.can_edit = true;
}
return response(json);
});
this.put('/users/eviltrout', () => {
return response({ user: {} });
});
this.get("/t/280.json", function() {
return response(fixturesByUrl['/t/280/1.json']);
});