When running the tests, DnsZone is empty at the start, and due to how ||= works, freezing the class would still result in dns_zone trying to modify the frozen class later. Switch from ||= to using defined? to fix the issue.
When running the tests, DnsZone is empty at the start, and due to how ||= works, freezing the class would still result in dns_zone trying to modify the frozen class later. Switch from ||= to using defined? to fix the issue.