mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Resolve some minor CC issues
This commit is contained in:
parent
e9f28a6d14
commit
3c7756680d
9 changed files with 11 additions and 15 deletions
|
@ -67,7 +67,7 @@ class ArchivableContactTest < ActiveSupport::TestCase
|
|||
|
||||
other_contact = contacts(:william)
|
||||
assert_not_equal other_contact, contact
|
||||
Domain.update_all(registrant_id: other_contact)
|
||||
Domain.update_all(registrant_id: other_contact.id)
|
||||
|
||||
DomainContact.delete_all
|
||||
|
||||
|
@ -78,4 +78,4 @@ class ArchivableContactTest < ActiveSupport::TestCase
|
|||
Contact.inactivity_period = 99.years
|
||||
@contact
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -267,6 +267,7 @@ class ContactTest < ActiveSupport::TestCase
|
|||
contact = unlinked_contact
|
||||
domains(:shop).update_columns(registrant_id: contact.becomes(Registrant))
|
||||
|
||||
reload
|
||||
assert Contact.unlinked.exclude?(contact), 'Contact should be excluded'
|
||||
end
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ class ArchiveContactsTaskTest < ActiveSupport::TestCase
|
|||
|
||||
other_contact = contacts(:william)
|
||||
assert_not_equal other_contact, contact
|
||||
Domain.update_all(registrant_id: other_contact)
|
||||
Domain.update_all(registrant_id: other_contact.id)
|
||||
|
||||
DomainContact.delete_all
|
||||
|
||||
|
@ -43,4 +43,4 @@ class ArchiveContactsTaskTest < ActiveSupport::TestCase
|
|||
def run_task
|
||||
Rake::Task['contacts:archive'].execute
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue