Improve contact phone spec

This commit is contained in:
Artur Beljajev 2017-08-18 13:15:24 +03:00
parent 3038d240f7
commit c5e1516d89
2 changed files with 3 additions and 15 deletions

View file

@ -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')