Fix tests

This commit is contained in:
dinsmol 2022-01-16 00:14:14 +03:00
parent c93a35ef52
commit d5e6ba1e69
2 changed files with 4 additions and 3 deletions

View file

@ -22,7 +22,7 @@ module EmailVerifable
flag = true flag = true
end end
end end
puts "test output: #{self.email} - #{flag}"
flag flag
end end

View file

@ -426,7 +426,8 @@ class ForceDeleteTest < ActionMailer::TestCase
old_email = contact_first.email old_email = contact_first.email
contact_first.update( contact_first.update(
email: email_1, email: email_1,
email_history: old_email) email_history: old_email
)
ValidationEvent::VALID_EVENTS_COUNT_THRESHOLD.times do ValidationEvent::VALID_EVENTS_COUNT_THRESHOLD.times do
contact_first.verify_email contact_first.verify_email
@ -446,7 +447,7 @@ class ForceDeleteTest < ActionMailer::TestCase
domain.reload domain.reload
contact_first.update( contact_first.update(
email: 'aaa@bbb.com', email: old_email,
email_history: email_1 email_history: email_1
) )