From 6d9ef9ee6463752482799a6e551333107fb2ad3e Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sun, 17 Dec 2023 23:04:16 +0100 Subject: [PATCH] Update test for profile picture controller to render form instead of redirecting --- spec/controllers/settings/profile_picture_controller_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/controllers/settings/profile_picture_controller_spec.rb b/spec/controllers/settings/profile_picture_controller_spec.rb index 727e8f61..bb3f464d 100644 --- a/spec/controllers/settings/profile_picture_controller_spec.rb +++ b/spec/controllers/settings/profile_picture_controller_spec.rb @@ -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