mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Take into account address_processing setting when creating and updating the contact via EPP
#251
This commit is contained in:
parent
a77a0ae558
commit
d3b1a23e92
11 changed files with 311 additions and 164 deletions
|
@ -438,4 +438,14 @@ RSpec.describe Contact, db: false do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe 'country code validation' do
|
||||
let(:contact) { described_class.new(country_code: 'test') }
|
||||
|
||||
it 'rejects invalid' do
|
||||
contact.country_code = 'invalid'
|
||||
contact.validate
|
||||
expect(contact.errors).to have_key(:country_code)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue