diff options
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/settings/preferences_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/settings/preferences_controller_spec.rb b/spec/controllers/settings/preferences_controller_spec.rb index 16cc87991..cdf595d4d 100644 --- a/spec/controllers/settings/preferences_controller_spec.rb +++ b/spec/controllers/settings/preferences_controller_spec.rb @@ -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: { |