|
|
@ -72,13 +72,6 @@ RSpec.describe "User Features" do |
|
|
|
fill_in("user[email]", with: user.email) |
|
|
|
fill_in("user[email]", with: user.email) |
|
|
|
expect { click_button("Send email") }.to change { ActionMailer::Base.deliveries.count }.by(1) |
|
|
|
expect { click_button("Send email") }.to change { ActionMailer::Base.deliveries.count }.by(1) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
it " is shown the password reset confirmation page and successful flash message shows" do |
|
|
|
|
|
|
|
visit("/users/password/new") |
|
|
|
|
|
|
|
fill_in("user[email]", with: user.email) |
|
|
|
|
|
|
|
click_button("Send email") |
|
|
|
|
|
|
|
expect(page).to have_css ".govuk-notification-banner.govuk-notification-banner--success" |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
context "If user not logged in" do |
|
|
|
context "If user not logged in" do |
|
|
|