Domain has many admin and technical contacts now

This commit is contained in:
Martin Lensment 2014-07-30 18:09:55 +03:00
parent 22baafab6d
commit 8bff2fb34c
8 changed files with 82 additions and 20 deletions

View file

@ -3,9 +3,9 @@ require "rails_helper"
describe Domain do
it { should belong_to(:registrar) }
it { should belong_to(:ns_set) }
it { should belong_to(:admin_contact) }
it { should belong_to(:owner_contact) }
it { should belong_to(:technical_contact) }
it { should have_many(:tech_contacts) }
it { should have_many(:admin_contacts) }
it 'validates domain name' do
d = Fabricate(:domain)