Sha256: 518b72ade584eac9dfc9c806ff521d656df896f83eb466c29c31595296574a5f
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
# encoding: utf-8 require 'spec_helper' # # The "References:" field will contain the contents of the parent's # "References:" field (if any) followed by the contents of the parent's # "Message-ID:" field (if any). If the parent message does not contain # a "References:" field but does have an "In-Reply-To:" field # containing a single message identifier, then the "References:" field # will contain the contents of the parent's "In-Reply-To:" field # followed by the contents of the parent's "Message-ID:" field (if # any). If the parent has none of the "References:", "In-Reply-To:", # or "Message-ID:" fields, then the new message will have no # "References:" field. describe Mail::ReferencesField do it "should initialize" do doing { Mail::ReferencesField.new("<1234@test.lindsaar.net>") }.should_not raise_error end it "should accept a string with the field name" do t = Mail::ReferencesField.new('References: <1234@test.lindsaar.net>') t.name.should == 'References' t.value.should == '<1234@test.lindsaar.net>' t.message_id.should == '1234@test.lindsaar.net' end it "should accept a string without the field name" do t = Mail::ReferencesField.new('<1234@test.lindsaar.net>') t.name.should == 'References' t.value.should == '<1234@test.lindsaar.net>' t.message_id.should == '1234@test.lindsaar.net' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-mail_exception-0.0.1 | vendor/mail/spec/mail/fields/references_field_spec.rb |