Refactor registrar address to smaller pieces

This commit is contained in:
Martin Lensment 2015-02-03 17:09:10 +02:00
parent 107767e241
commit 39ea06ab17
8 changed files with 57 additions and 22 deletions

View file

@ -13,9 +13,8 @@ describe Registrar do
it 'is not valid' do
@registrar.valid?
@registrar.errors.full_messages.should match_array([
'Address is missing',
'Contact e-mail is missing',
'Country is missing',
'Country code is missing',
'Name is missing',
'Reg no is missing'
])