mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
Adds acceptance test for user preferences
This commit is contained in:
@ -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']);
|
||||
});
|
||||
|
Reference in New Issue
Block a user