mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 22:54:47 +02:00
Remove useless specs
This commit is contained in:
parent
6bab335f5a
commit
65a50a8db0
9 changed files with 0 additions and 152 deletions
|
@ -49,18 +49,6 @@ describe DomainContact do
|
|||
it 'should have Tech name' do
|
||||
@domain_contact.name.should == 'Tech'
|
||||
end
|
||||
|
||||
it 'should have one version' do
|
||||
@domain_contact = create(:domain_contact)
|
||||
|
||||
with_versioning do
|
||||
@domain_contact.versions.reload.should == []
|
||||
@domain_contact.contact = create(:contact)
|
||||
@domain_contact.save!
|
||||
@domain_contact.errors.full_messages.should match_array([])
|
||||
@domain_contact.versions.size.should == 1
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'with valid attributes with tech domain contact' do
|
||||
|
@ -82,18 +70,6 @@ describe DomainContact do
|
|||
it 'should have Tech name' do
|
||||
@domain_contact.name.should == 'Tech'
|
||||
end
|
||||
|
||||
it 'should have one version' do
|
||||
@domain_contact = create(:domain_contact)
|
||||
|
||||
with_versioning do
|
||||
@domain_contact.versions.reload.should == []
|
||||
@domain_contact.contact = create(:contact)
|
||||
@domain_contact.save!
|
||||
@domain_contact.errors.full_messages.should match_array([])
|
||||
@domain_contact.versions.size.should == 1
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'with valid attributes with admin domain contact' do
|
||||
|
@ -115,15 +91,5 @@ describe DomainContact do
|
|||
it 'should have Tech name' do
|
||||
@domain_contact.name.should == 'Admin'
|
||||
end
|
||||
|
||||
it 'should have one version' do
|
||||
with_versioning do
|
||||
@domain_contact.versions.reload.should == []
|
||||
@domain_contact.contact = create(:contact)
|
||||
@domain_contact.save
|
||||
@domain_contact.errors.full_messages.should match_array([])
|
||||
@domain_contact.versions.size.should == 1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue