@@ -272,8 +272,8 class MailHandlerTest < ActiveSupport::TestCase | |||||
272 | email = ActionMailer::Base.deliveries.first |
|
272 | email = ActionMailer::Base.deliveries.first | |
273 | assert_not_nil email |
|
273 | assert_not_nil email | |
274 | assert email.subject.include?('account activation') |
|
274 | assert email.subject.include?('account activation') | |
275 | login = mail_body(email).match(/\* Login: (.*)$/)[1] |
|
275 | login = mail_body(email).match(/\* Login: (.*)$/)[1].strip | |
276 | password = mail_body(email).match(/\* Password: (.*)$/)[1] |
|
276 | password = mail_body(email).match(/\* Password: (.*)$/)[1].strip | |
277 | assert_equal issue.author, User.try_to_login(login, password) |
|
277 | assert_equal issue.author, User.try_to_login(login, password) | |
278 | end |
|
278 | end | |
279 | end |
|
279 | end |
General Comments 0
You need to be logged in to leave comments.
Login now