user_controller_spec: get rid of rails 7 deprecation warning

This commit is contained in:
Georg Gadinger 2022-06-21 20:06:54 +02:00 committed by Karina Kwiatek
parent f0d26a1555
commit 06a20d34d2
1 changed files with 2 additions and 2 deletions

View File

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