Create tests for Dispute

This commit is contained in:
Karl Erik Õunapuu 2020-04-30 08:59:27 +03:00
parent f73833e478
commit 483eec554e
8 changed files with 228 additions and 23 deletions

View file

@ -43,7 +43,7 @@ class ReservedDomain < ApplicationRecord
end
def sync_dispute_password
dispute = Dispute.active.find_by(domain_name: domain_name)
dispute = Dispute.active.find_by(domain_name: name)
self.password = dispute.password if dispute.present?
end