2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: wasn't able to update user options anymore

This commit is contained in:
Régis Hanol 2017-09-26 20:00:10 +02:00
parent 460ed3c8cf
commit 28c54b42c5
2 changed files with 13 additions and 7 deletions

View file

@ -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