mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
parent
114f15d4ea
commit
561b28ffb6
1 changed files with 3 additions and 3 deletions
|
@ -568,8 +568,8 @@ RSpec.describe Domain do
|
||||||
with_versioning do
|
with_versioning do
|
||||||
context 'when saved' do
|
context 'when saved' do
|
||||||
before(:each) do
|
before(:each) do
|
||||||
domain = create(:domain)
|
domain = create(:domain, nameservers_attributes: [attributes_for(:nameserver),
|
||||||
domain.nameservers << create(:nameserver)
|
attributes_for(:nameserver)])
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'creates domain version' do
|
it 'creates domain version' do
|
||||||
|
@ -660,7 +660,7 @@ RSpec.describe Domain do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'nameserver validation', db: true do
|
describe 'nameserver validation', db: true do
|
||||||
let(:domain) { described_class.new }
|
let(:domain) { described_class.new(name: 'whatever.test') }
|
||||||
|
|
||||||
it 'rejects less than min' do
|
it 'rejects less than min' do
|
||||||
Setting.ns_min_count = 2
|
Setting.ns_min_count = 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue