Move size constant to LegalDocument class

This commit is contained in:
Alex Sherman 2021-03-18 15:22:02 +05:00
parent 9f21b1704c
commit 31a463c587
3 changed files with 4 additions and 7 deletions

View file

@ -82,8 +82,7 @@ class EppDomainCreateBaseTest < EppTestCase
contact = contacts(:john)
registrant = contact.becomes(Registrant)
# 8388608 bytes == 8 mb
bignum_legaldoc = 't' * (8388608 + 1)
bignum_legaldoc = 't' * (LegalDocument::MAX_BODY_SIZE + 1)
request_xml = <<-XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
@ -117,8 +116,7 @@ class EppDomainCreateBaseTest < EppTestCase
contact = contacts(:john)
registrant = contact.becomes(Registrant)
# 8388608 bytes == 8 mb
bignum_legaldoc = 't' * 8388608
bignum_legaldoc = 't' * LegalDocument::MAX_BODY_SIZE
request_xml = <<-XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>