Skip to content

Commit

Permalink
Add spec to address list
Browse files Browse the repository at this point in the history
  • Loading branch information
njaeggi committed Sep 26, 2024
1 parent 17aa6b1 commit d58ab66
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/domain/mail_relay/address_list_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [])
Expand Down

0 comments on commit d58ab66

Please sign in to comment.