First stab at polling support for POP3S / reply by email

This commit is contained in:
Robin Ward
2013-06-13 18:11:10 -04:00
parent 4de0c58b83
commit 8acdc18bc8
19 changed files with 293 additions and 57 deletions

View File

@ -75,6 +75,23 @@ describe Email::MessageBuilder do
end
context "header args" do
let(:message_with_header_args) { Email::MessageBuilder.new(to_address,
body: 'hello world',
topic_id: 1234,
post_id: 4567) }
it "passes through a post_id" do
expect(message_with_header_args.header_args['Discourse-Post-Id']).to eq('4567')
end
it "passes through a topic_id" do
expect(message_with_header_args.header_args['Discourse-Topic-Id']).to eq('1234')
end
end
context "unsubscribe link" do
context "with add_unsubscribe_link false" do