password: add specific page for reset instructions

This commit is contained in:
Pierre de La Morinerie 2021-04-22 10:07:35 +00:00 committed by simon lehericey
parent fb55c76829
commit d530b272a1
9 changed files with 82 additions and 7 deletions

View file

@ -38,4 +38,16 @@ describe Users::PasswordsController, type: :controller do
end
end
end
describe '#reset_link_sent' do
let(:email) { 'test@example.com' }
it 'displays the page' do
get 'reset_link_sent', params: { email: email }
expect(response).to have_http_status(:ok)
expect(response).to render_template('reset_link_sent')
expect(assigns(:email)).to eq email
end
end
end