mirror of
https://github.com/discourse/discourse.git
synced 2025-06-19 05:37:59 +08:00
FIX: wasn't able to update user options anymore
This commit is contained in:
@ -1440,13 +1440,15 @@ describe UsersController do
|
||||
put :update, params: {
|
||||
username: user.username,
|
||||
muted_usernames: "",
|
||||
theme_key: theme.key
|
||||
theme_key: theme.key,
|
||||
email_direct: false
|
||||
}, format: :json
|
||||
|
||||
user.reload
|
||||
|
||||
expect(user.muted_users.pluck(:username).sort).to be_empty
|
||||
expect(user.user_option.theme_key).to eq(theme.key)
|
||||
expect(user.user_option.email_direct).to eq(false)
|
||||
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user