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

13 lines
371 B
Ruby
Raw Normal View History

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