some email notification header fixes

This commit is contained in:
Jeff Atwood
2014-06-13 15:42:14 -07:00
parent c690fa0d19
commit beaa145572
2 changed files with 10 additions and 25 deletions

View File

@ -39,20 +39,6 @@ describe Email::Sender do
end
context "list_id_for" do
it "joins the host and forum name" do
Email::Sender.list_id_for("myforum", "mysite.com").should == '"myforum" <discourse.forum.myforum.mysite.com>'
end
it "removes double quotes from names" do
Email::Sender.list_id_for('Quoted "Forum"', 'quoted.com').should == '"Quoted \'Forum\'" <discourse.forum.quoted-forum.quoted.com>'
end
it "converts the site name to lower case and removes spaces" do
Email::Sender.list_id_for("Robin's cool Forum!", "robin.com").should == '"Robin\'s cool Forum!" <discourse.forum.robins-cool-forum.robin.com>'
end
end
context 'with a valid message' do
let(:reply_key) { "abcd" * 8 }