password: add specific page for reset instructions
This commit is contained in:
parent
fb55c76829
commit
d530b272a1
9 changed files with 82 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue