mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Improve contact phone spec
This commit is contained in:
parent
3038d240f7
commit
c5e1516d89
2 changed files with 3 additions and 15 deletions
|
@ -1,6 +1,6 @@
|
|||
# https://en.wikipedia.org/wiki/E.164
|
||||
|
||||
RSpec.shared_examples 'e164 phone number' do
|
||||
RSpec.shared_examples 'e164' do
|
||||
describe 'validation' do
|
||||
it 'rejects invalid format' do
|
||||
model.send("#{attribute}=", '+.1')
|
Loading…
Add table
Add a link
Reference in a new issue