From 06a20d34d2dd4a51b2b7a86c28d767dabb80ecfe Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Tue, 21 Jun 2022 20:06:54 +0200 Subject: [PATCH] user_controller_spec: get rid of rails 7 deprecation warning --- spec/controllers/user_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/user_controller_spec.rb b/spec/controllers/user_controller_spec.rb index 4332746e..3b5b2ec3 100644 --- a/spec/controllers/user_controller_spec.rb +++ b/spec/controllers/user_controller_spec.rb @@ -93,7 +93,7 @@ describe UserController, type: :controller do subject { patch :update, params: { user: avatar_params } } let(:avatar_params) do { - profile_picture: fixture_file_upload("files/banana_racc.jpg", "image/jpeg") + profile_picture: fixture_file_upload("banana_racc.jpg", "image/jpeg") } end @@ -168,7 +168,7 @@ describe UserController, type: :controller do subject { patch :update, params: { user: header_params } } let(:header_params) do { - profile_header: fixture_file_upload("files/banana_racc.jpg", "image/jpeg") + profile_header: fixture_file_upload("banana_racc.jpg", "image/jpeg") } end