1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 13:19:39 +02:00
Maybe/test/controllers/email_confirmations_controller_test.rb
Josh Pigford 41873de11d
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions
Allow users to update their email address (#1745)
* Change email address

* Email confirmation

* Email change test

* Lint

* Schema reset

* Set test email sender

* Select specific user fixture

* Refactor/cleanup

* Remove unused email_confirmation_token

* Current user would never be true

* Fix translation test failures
2025-01-31 11:29:49 -06:00

12 lines
371 B
Ruby

require "test_helper"
class EmailConfirmationsControllerTest < ActionDispatch::IntegrationTest
test "should get confirm" do
user = users(:new_email)
user.update!(unconfirmed_email: "new@example.com")
token = user.generate_token_for(:email_confirmation)
get new_email_confirmation_path(token: token)
assert_redirected_to new_session_path
end
end