mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 21:16:12 +02:00
added test
This commit is contained in:
parent
1b8640966c
commit
736d935e3e
5 changed files with 27 additions and 8 deletions
|
@ -36,6 +36,7 @@ class ValidationEventTest < ActiveSupport::TestCase
|
|||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue