Fix paper trail versioning for RegistrantVerification

This commit is contained in:
Karl Erik Õunapuu 2020-08-07 14:48:54 +03:00
parent 2d93932d92
commit cca51b8a03
5 changed files with 118 additions and 96 deletions

View file

@ -29,4 +29,13 @@ class DomainDeleteConfirmsTest < ApplicationSystemTestCase
@domain.reload
assert_equal ['ok'], @domain.statuses
end
def test_saves_whodunnit_info_after_verifivation
visit registrant_domain_delete_confirm_url(@domain.id, token: @domain.registrant_verification_token)
token = @domain.registrant_verification_token
click_on 'Confirm domain delete'
assert_text 'Domain registrant change has successfully received.'
refute RegistrantVerification.find_by(verification_token:token).updator_str.empty?
end
end