docbrown/spec/system/authentication/user_request_confirmation_spec.rb
Mac Siri 842e6880b8
Routine rubocop fix on /spec (#19217)
* Softrun rubocop

* Hardrun rubocop (-A)

* Change a rubocop rule

* Add missing cops

* Undo & redo rubocop -A
2023-03-21 09:55:26 -04:00

13 lines
477 B
Ruby

require "rails_helper"
RSpec.describe "/confirm-email" do
it "stays on the same page and displays a flash message", :aggregate_failures do
visit confirm_email_path
fill_in "user_email", with: "test@example.com"
click_button "Resend"
expect(page).to have_current_path(user_confirmation_path)
expected_message = I18n.t("confirmations_controller.email_sent", email: ForemInstance.contact_email)
expect(page).to have_content(expected_message)
end
end