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