mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Tests #2806
This commit is contained in:
parent
e8e730a6e1
commit
1a7360cc3c
3 changed files with 40 additions and 23 deletions
|
@ -33,7 +33,9 @@ describe ZonefileSetting do
|
|||
|
||||
it 'does not create duplicate zones' do
|
||||
Fabricate(:zonefile_setting)
|
||||
expect { Fabricate(:zonefile_setting) }.to raise_error(ActiveRecord::RecordInvalid)
|
||||
zs = Fabricate.build(:zonefile_setting)
|
||||
zs.save.should == false
|
||||
zs.errors.full_messages.should match_array(["Origin has already been taken"])
|
||||
end
|
||||
|
||||
it 'does not allow deleting zone when it has existing domains' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue