mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +02:00
Remove useless spec
This commit is contained in:
parent
8678d71866
commit
ce58feba6e
1 changed files with 0 additions and 55 deletions
|
@ -1,55 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe DomainTransfer do
|
||||
before :example do
|
||||
Setting.ds_algorithm = 2
|
||||
Setting.ds_data_allowed = true
|
||||
Setting.ds_data_with_key_allowed = true
|
||||
Setting.key_data_allowed = true
|
||||
|
||||
Setting.dnskeys_min_count = 0
|
||||
Setting.dnskeys_max_count = 9
|
||||
Setting.ns_min_count = 2
|
||||
Setting.ns_max_count = 11
|
||||
|
||||
Setting.transfer_wait_time = 0
|
||||
|
||||
Setting.admin_contacts_min_count = 1
|
||||
Setting.admin_contacts_max_count = 10
|
||||
Setting.tech_contacts_min_count = 0
|
||||
Setting.tech_contacts_max_count = 10
|
||||
|
||||
Setting.client_side_status_editing_enabled = true
|
||||
|
||||
create(:zone, origin: 'ee')
|
||||
end
|
||||
|
||||
context 'with invalid attribute' do
|
||||
before :example do
|
||||
@domain_transfer = DomainTransfer.new
|
||||
end
|
||||
|
||||
it 'should not be valid' do
|
||||
@domain_transfer.valid?
|
||||
@domain_transfer.errors.full_messages.should match_array([
|
||||
])
|
||||
end
|
||||
end
|
||||
|
||||
context 'with valid attributes' do
|
||||
before :example do
|
||||
@domain_transfer = create(:domain_transfer)
|
||||
end
|
||||
|
||||
it 'should be valid' do
|
||||
@domain_transfer.valid?
|
||||
@domain_transfer.errors.full_messages.should match_array([])
|
||||
end
|
||||
|
||||
it 'should be valid twice' do
|
||||
@domain_transfer = create(:domain_transfer)
|
||||
@domain_transfer.valid?
|
||||
@domain_transfer.errors.full_messages.should match_array([])
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue