Merge pull request #2860 from techAPJ/patch-2

include category in List-Id instead of topic
This commit is contained in:
Robin Ward
2014-10-08 15:28:41 -04:00
2 changed files with 21 additions and 7 deletions

View File

@ -64,11 +64,14 @@ describe Email::Sender do
email_sender.send
end
# will fail since topic ID has to be present
#it "adds a List-ID header to identify the forum" do
# email_sender.send
# message.header['List-ID'].should be_present
#end
context "adds a List-ID header to identify the forum" do
before do
message.header['X-Discourse-Topic-Id'] = 5577
end
When { email_sender.send }
Then { expect(message.header['List-ID']).to be_present }
end
context 'email logs' do
let(:email_log) { EmailLog.last }