mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +02:00
comment out not relevant tests
This commit is contained in:
parent
736d935e3e
commit
f4d276fc44
11 changed files with 148 additions and 88 deletions
|
@ -31,24 +31,23 @@ class ValidationEventTest < ActiveSupport::TestCase
|
|||
|
||||
|
||||
|
||||
def test_fd_didnt_set_if_mx_interation_less_then_value
|
||||
@domain.update(valid_to: Time.zone.parse('2012-08-05'))
|
||||
assert_not @domain.force_delete_scheduled?
|
||||
travel_to Time.zone.parse('2010-07-05')
|
||||
# def test_fd_didnt_set_if_mx_interation_less_then_value
|
||||
# @domain.update(valid_to: Time.zone.parse('2012-08-05'))
|
||||
# assert_not @domain.force_delete_scheduled?
|
||||
# travel_to Time.zone.parse('2010-07-05')
|
||||
|
||||
Contact.skip_callback(:save, :after, :validate_email_by_regex_and_mx)
|
||||
email = 'email@somestrangedomain12345.ee'
|
||||
contact = @domain.admin_contacts.first
|
||||
contact.update_attribute(:email, email)
|
||||
(ValidationEvent::VALID_EVENTS_COUNT_THRESHOLD - 4).times do
|
||||
contact.verify_email(check_level: 'mx')
|
||||
end
|
||||
contact.reload
|
||||
# email = 'email@somestrangedomain12345.ee'
|
||||
# contact = @domain.admin_contacts.first
|
||||
# contact.update_attribute(:email, email)
|
||||
# (ValidationEvent::VALID_EVENTS_COUNT_THRESHOLD - 4).times do
|
||||
# contact.verify_email(check_level: 'mx')
|
||||
# end
|
||||
# contact.reload
|
||||
|
||||
refute contact.validation_events.limit(ValidationEvent::VALID_EVENTS_COUNT_THRESHOLD)
|
||||
.any?(&:success?)
|
||||
assert_not contact.need_to_start_force_delete?
|
||||
end
|
||||
# refute contact.validation_events.limit(ValidationEvent::VALID_EVENTS_COUNT_THRESHOLD)
|
||||
# .any?(&:success?)
|
||||
# assert_not contact.need_to_start_force_delete?
|
||||
# end
|
||||
|
||||
def test_if_fd_need_to_be_set_if_invalid_mx
|
||||
@domain.update(valid_to: Time.zone.parse('2012-08-05'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue