-
Notifications
You must be signed in to change notification settings - Fork 937
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This has little effect on the specs, but on my header reading example it makes about a 10x performance difference, finally bringing it within one order of magnitude of the "fast hacky solution" at https://gist.github.com/5901bbd810c08ed3d0b1
- Loading branch information
1 parent
2bd6dac
commit 72befdc
Showing
4 changed files
with
24 additions
and
23 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
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 |
---|---|---|
|
@@ -109,7 +109,7 @@ def basic_email | |
|
||
it "should raise a warning (and keep parsing) on having an incorrectly formatted header" do | ||
STDERR.should_receive(:puts).with("WARNING: Could not parse (and so ignoring) 'quite Delivered-To: [email protected]'") | ||
Mail.read(fixture('emails', 'plain_emails', 'raw_email_incorrect_header.eml')) | ||
Mail.read(fixture('emails', 'plain_emails', 'raw_email_incorrect_header.eml')).to_s | ||
end | ||
|
||
it "should read in an email message and basically parse it" do | ||
|