Allow users to send themselves a new confirmation email

Add a method which generates a new confirmation email, and provide
links to it from appropriate places.
This commit is contained in:
Tom Hughes 2010-10-04 21:38:02 +01:00
parent 52e523cb0b
commit bddf524c88
6 changed files with 55 additions and 21 deletions

View file

@ -104,7 +104,7 @@ class UserCreationTest < ActionController::IntegrationTest
assert_equal register_email.to[0], new_email
# Check that the confirm account url is correct
confirm_regex = Regexp.new("/user/confirm\\?confirm_string=([a-zA-Z0-9]*)")
confirm_regex = Regexp.new("/user/redirect_tester/confirm\\?confirm_string=([a-zA-Z0-9]*)")
assert_match(confirm_regex, register_email.body)
confirm_string = confirm_regex.match(register_email.body)[1]