assert_equal register_email.to[0], new_email
# Check that the confirm account url is correct
assert_equal register_email.to[0], new_email
# Check that the confirm account url is correct
assert_match(confirm_regex, register_email.body)
confirm_string = confirm_regex.match(register_email.body)[1]
assert_match(confirm_regex, register_email.body)
confirm_string = confirm_regex.match(register_email.body)[1]