mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
Fix tests
This commit is contained in:
parent
c93a35ef52
commit
d5e6ba1e69
2 changed files with 4 additions and 3 deletions
|
@ -22,7 +22,7 @@ module EmailVerifable
|
||||||
flag = true
|
flag = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
puts "test output: #{self.email} - #{flag}"
|
|
||||||
flag
|
flag
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue