Update test for profile picture controller to render form instead of redirecting

This commit is contained in:
Karina Kwiatek 2023-12-17 23:04:16 +01:00
parent 4df74d6ff5
commit 6d9ef9ee64

View file

@ -32,7 +32,8 @@ describe Settings::ProfilePictureController, type: :controller do
it "redirects to the edit_user_profile page" do
subject
expect(response).to redirect_to(:settings_profile)
expect(response).to have_http_status(:ok)
expect(response).to have_rendered(:edit)
end
end
end