User settings mutation (#2270)
* Add user spec for settings, highlight global default mutation issue * Fix mutation issue caused by settings/preferences spec
This commit is contained in:
parent
ceecf96208
commit
ee0c897bba
2 changed files with 33 additions and 2 deletions
|
@ -24,8 +24,8 @@ describe Settings::PreferencesController do
|
|||
|
||||
it 'updates user settings' do
|
||||
user.settings['boost_modal'] = false
|
||||
user.settings['notification_emails']['follow'] = false
|
||||
user.settings['interactions']['must_be_follower'] = true
|
||||
user.settings['notification_emails'] = user.settings['notification_emails'].merge('follow' => false)
|
||||
user.settings['interactions'] = user.settings['interactions'].merge('must_be_follower' => true)
|
||||
|
||||
put :update, params: {
|
||||
user: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue