mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 10:49:39 +02:00
Domain reservation validation
This commit is contained in:
parent
fb12d056ce
commit
f87c8839be
6 changed files with 36 additions and 6 deletions
|
@ -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