Improve RegistrantChangeMailer

- Do not show registrant address unless "address_processing" is enabled
- Add missing registrant state and zip attributes

#480
This commit is contained in:
Artur Beljajev 2017-05-18 15:59:06 +03:00
parent 2c648ddc84
commit bfc0c0b74f
14 changed files with 164 additions and 43 deletions

View file

@ -523,4 +523,12 @@ RSpec.describe Contact, db: false do
specify { expect(contact.id_code).to be_nil }
end
end
describe '#ident_country' do
let(:contact) { described_class.new(ident_country_code: 'US') }
it 'returns ident country' do
expect(contact.ident_country).to eq(Country.new('US'))
end
end
end