Skip to content

Commit

Permalink
πŸ’š Update specs
Browse files Browse the repository at this point in the history
  • Loading branch information
pboling committed Mar 21, 2024
1 parent 12e2e90 commit acf1e83
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions spec/sanitize_email_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -788,9 +788,14 @@ def mail_delivery_multiple_recipients
)
sanitary_mail_delivery
end
it 'original to is munged and prepended' do
it 'original to is in header' do
expect(@email_message).to have_sanitized_to_header(
'[email protected]'
)
end
it 'munged original to is to username' do
expect(@email_message).to have_to_username(
'to at example.org <to@sanitize_email.org>'
'to at example.org'
)
end
it 'does not alter non-sanitized attributes' do
Expand Down

0 comments on commit acf1e83

Please sign in to comment.