mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 02:48:28 +08:00
Merge pull request #2860 from techAPJ/patch-2
include category in List-Id instead of topic
This commit is contained in:
@ -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 }
|
||||
|
Reference in New Issue
Block a user