mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Error handling
This commit is contained in:
parent
2adbd915f7
commit
d81c97052d
7 changed files with 51 additions and 41 deletions
|
@ -39,9 +39,9 @@ describe Domain do
|
|||
expect(d.valid?).to be false
|
||||
|
||||
expect(d.errors.messages).to match_array({
|
||||
name: ['Required parameter missing - name'],
|
||||
name: ['is missing'],
|
||||
period: ['is not a number'],
|
||||
owner_contact: ['Required parameter missing - registrant']
|
||||
owner_contact: ["Registrant is missing"]
|
||||
})
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue