|
|
@ -168,9 +168,13 @@ RSpec.describe UsersController, type: :request do |
|
|
|
get "/users/#{user.id}/password/edit", headers: headers, params: {} |
|
|
|
get "/users/#{user.id}/password/edit", headers: headers, params: {} |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
it "show the edit password page" do |
|
|
|
it "shows the edit password page" do |
|
|
|
expect(page).to have_content("Change your password") |
|
|
|
expect(page).to have_content("Change your password") |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "shows the password requirements hint" do |
|
|
|
|
|
|
|
expect(page).to have_css("#user-password-hint") |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
context "when the current user does not matches the user ID" do |
|
|
|
context "when the current user does not matches the user ID" do |
|
|
|