forked from mikel/mail
-
-
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.
Make References field singular like In-Reply-To
Closes mikel#1220
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,6 +165,16 @@ def create_mail_with_splat_args | |
expect(Mail::Utilities.blank?(mail.in_reply_to)).to be_truthy | ||
end | ||
|
||
it "should be able to pass two In-Reply-To headers" do | ||
mail = Mail.new("From: bob\r\nIn-Reply-To: <[email protected]>\r\nIn-Reply-To: <[email protected]>\r\nSubject: Hello!\r\n\r\nemail message\r\n") | ||
expect(mail.in_reply_to).to eq '[email protected]' | ||
end | ||
|
||
it "should be able to pass two References headers" do | ||
mail = Mail.new("From: bob\r\nReferences: <[email protected]>\r\nReferences: <[email protected]>\r\nSubject: Hello!\r\n\r\nemail message\r\n") | ||
expect(mail.references).to eq '[email protected]' | ||
end | ||
|
||
describe "YAML serialization" do | ||
before(:each) do | ||
# Ensure specs don't randomly fail due to messages being generated 1 second apart | ||
|