mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FEATURE: theme selection is now global per-user
This commit is contained in:
parent
b301b69d00
commit
2d96a0785d
11 changed files with 53 additions and 29 deletions
|
@ -1221,13 +1221,17 @@ describe UsersController do
|
|||
expect(user.custom_fields['test']).to eq 'it'
|
||||
expect(user.muted_users.pluck(:username).sort).to eq [user2.username,user3.username].sort
|
||||
|
||||
theme = Theme.create(name: "test", user_selectable: true, user_id: -1)
|
||||
|
||||
put :update,
|
||||
username: user.username,
|
||||
muted_usernames: ""
|
||||
muted_usernames: "",
|
||||
theme_key: theme.key
|
||||
|
||||
user.reload
|
||||
|
||||
expect(user.muted_users.pluck(:username).sort).to be_empty
|
||||
expect(user.user_option.theme_key).to eq(theme.key)
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue