Strip login and password read from the email body.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9093 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
df89c24e37
commit
5803bf9fc4
|
@ -272,8 +272,8 @@ class MailHandlerTest < ActiveSupport::TestCase
|
|||
email = ActionMailer::Base.deliveries.first
|
||||
assert_not_nil email
|
||||
assert email.subject.include?('account activation')
|
||||
login = mail_body(email).match(/\* Login: (.*)$/)[1]
|
||||
password = mail_body(email).match(/\* Password: (.*)$/)[1]
|
||||
login = mail_body(email).match(/\* Login: (.*)$/)[1].strip
|
||||
password = mail_body(email).match(/\* Password: (.*)$/)[1].strip
|
||||
assert_equal issue.author, User.try_to_login(login, password)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue