summaryrefslogtreecommitdiffstats
path: root/test/unit/mail_handler_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/mail_handler_test.rb')
-rw-r--r--test/unit/mail_handler_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb
index 218625f74..bf38048db 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 = email.body.match(/\* Login: (.*)$/)[1]
- password = email.body.match(/\* Password: (.*)$/)[1]
+ login = mail_body(email).match(/\* Login: (.*)$/)[1]
+ password = mail_body(email).match(/\* Password: (.*)$/)[1]
assert_equal issue.author, User.try_to_login(login, password)
end
end