diff --git a/spec/domain/mail_relay/address_list_spec.rb b/spec/domain/mail_relay/address_list_spec.rb index 281d2d1..c6d18a9 100644 --- a/spec/domain/mail_relay/address_list_spec.rb +++ b/spec/domain/mail_relay/address_list_spec.rb @@ -69,6 +69,14 @@ new_manager.email ]) end + + it 'contains only manager emails when managed has no email' do + managed.update!(email: nil) + + expect(entries(managed)).to match_array([ + manager.email + ]) + end end def entries(people = Person.all, labels = [])