diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-04 14:08:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-04 14:08:19 +0000 |
commit | 5803bf9fc4545610a7ee46ce7f6a6bf9b4f55a57 (patch) | |
tree | 004e377382458c30fefec5ed54954a7a812172dd | |
parent | df89c24e37af13fac084b44ae5f3f40769d7aa24 (diff) | |
download | redmine-5803bf9fc4545610a7ee46ce7f6a6bf9b4f55a57.tar.gz redmine-5803bf9fc4545610a7ee46ce7f6a6bf9b4f55a57.zip |
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
-rw-r--r-- | test/unit/mail_handler_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb index bf38048db..bedff3731 100644 --- a/test/unit/mail_handler_test.rb +++ b/test/unit/mail_handler_test.rb @@ -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 |