mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 03:54:08 +00:00
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
This commit is contained in:
12
test/controllers/email_confirmations_controller_test.rb
Normal file
12
test/controllers/email_confirmations_controller_test.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user