mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Domain reservation validation
This commit is contained in:
parent
fb12d056ce
commit
f87c8839be
6 changed files with 36 additions and 6 deletions
3
spec/fabricators/reserved_domain_fabricator.rb
Normal file
3
spec/fabricators/reserved_domain_fabricator.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
Fabricator(:reserved_domain) do
|
||||
name '1162.ee'
|
||||
end
|
|
@ -35,4 +35,9 @@ describe Domain do
|
|||
expect(Fabricate.build(:domain, name: x).valid?).to be true
|
||||
end
|
||||
end
|
||||
|
||||
it 'does not create a reserved domain' do
|
||||
Fabricate(:reserved_domain)
|
||||
expect(Fabricate.build(:domain, name: '1162.ee').valid?).to be false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue