summaryrefslogtreecommitdiff
path: root/spec/controllers/profiles/preferences_controller_spec.rb
diff options
context:
space:
mode:
authorJasper Maes <jaspermaes.jm@gmail.com>2018-12-16 13:01:11 +0100
committerJasper Maes <jaspermaes.jm@gmail.com>2018-12-16 13:45:19 +0100
commitde399c4a497a08cff956ba6ad244b01f6c5afa63 (patch)
tree4e1633ef3e932bdfc1b2f0838880a9b5af210de6 /spec/controllers/profiles/preferences_controller_spec.rb
parent8b4602041cf2c4a8738a4796d78720017249249f (diff)
downloadgitlab-ce-de399c4a497a08cff956ba6ad244b01f6c5afa63.tar.gz
Fix deprecation: Comparing equality between ActionController::Parameters and a Hash is deprecated
Diffstat (limited to 'spec/controllers/profiles/preferences_controller_spec.rb')
-rw-r--r--spec/controllers/profiles/preferences_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/profiles/preferences_controller_spec.rb b/spec/controllers/profiles/preferences_controller_spec.rb
index a66b4ab0902..b580e773459 100644
--- a/spec/controllers/profiles/preferences_controller_spec.rb
+++ b/spec/controllers/profiles/preferences_controller_spec.rb
@@ -45,7 +45,7 @@ describe Profiles::PreferencesController do
theme_id: '2'
}.with_indifferent_access
- expect(user).to receive(:assign_attributes).with(prefs)
+ expect(user).to receive(:assign_attributes).with(ActionController::Parameters.new(prefs).permit!)
expect(user).to receive(:save)
go params: prefs