Update test for profile picture controller to render form instead of redirecting
This commit is contained in:
parent
4df74d6ff5
commit
6d9ef9ee64
|
@ -32,7 +32,8 @@ describe Settings::ProfilePictureController, type: :controller do
|
||||||
|
|
||||||
it "redirects to the edit_user_profile page" do
|
it "redirects to the edit_user_profile page" do
|
||||||
subject
|
subject
|
||||||
expect(response).to redirect_to(:settings_profile)
|
expect(response).to have_http_status(:ok)
|
||||||
|
expect(response).to have_rendered(:edit)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue