@ -40,6 +40,7 @@ class UsersController < ApplicationController
end
def edit_password
@minimum_password_length = User.password_length.min
render "devise/passwords/edit"
@ -168,9 +168,13 @@ RSpec.describe UsersController, type: :request do
get "/users/#{user.id}/password/edit", headers: headers, params: {}
it "show the edit password page" do
it "shows the edit password page" do
expect(page).to have_content("Change your password")
it "shows the password requirements hint" do
expect(page).to have_css("#user-password-hint")
context "when the current user does not matches the user ID" do