forked from kalys/bamboo_ses
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -264,9 +264,17 @@ defmodule Bamboo.SesAdapterTest do | |
email = EmailParser.parse(body) | ||
assert EmailParser.to(email) == [~s("Alice Johnson" <[email protected]>)] | ||
assert EmailParser.from(email) == ~s("Bob McBob" <[email protected]>) | ||
assert EmailParser.cc(email) == [~s("=?utf-8?B?#{Base.encode64("John Müller")}?=" <[email protected]>)] | ||
assert EmailParser.bcc(email) == [~s("=?utf-8?B?#{Base.encode64("Jane \"The Builder\" Doe")}?=" <[email protected]>)] | ||
assert EmailParser.reply_to(email) == ~s("=?utf-8?B?#{Base.encode64("Chuck (?) Eager")}?=" <[email protected]>) | ||
|
||
assert EmailParser.cc(email) == [ | ||
~s("=?utf-8?B?#{Base.encode64("John Müller")}?=" <[email protected]>) | ||
] | ||
|
||
assert EmailParser.bcc(email) == [ | ||
~s("=?utf-8?B?#{Base.encode64("Jane \"The Builder\" Doe")}?=" <[email protected]>) | ||
] | ||
|
||
assert EmailParser.reply_to(email) == | ||
~s("=?utf-8?B?#{Base.encode64("Chuck (?) Eager")}?=" <[email protected]>) | ||
|
||
assert EmailParser.subject(email) == | ||
"Welcome to the app this is a longer subject" | ||
|