-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from algorich/named_sender
Add suport for named sender
- Loading branch information
Showing
3 changed files
with
10 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
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
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 |
---|---|---|
|
@@ -14,13 +14,13 @@ | |
it "saves text into html document" do | ||
Launchy.should_receive(:open) | ||
mail = Mail.deliver do | ||
from '[email protected]' | ||
from 'Foo [email protected]' | ||
to '[email protected]' | ||
subject 'Hello' | ||
body 'World!' | ||
end | ||
text = File.read(Dir["#{@location}/*/plain.html"].first) | ||
text.should include("[email protected]") | ||
text.should include("Foo [email protected]") | ||
text.should include("[email protected]") | ||
text.should include("Hello") | ||
text.should include("World!") | ||
|
@@ -47,3 +47,4 @@ | |
html.should include("<h1>This is HTML</h1>") | ||
end | ||
end | ||
|