mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
Ugly Hack: Remove improperly parsed headers from Mail::Message
This commit is contained in:
@ -17,6 +17,17 @@ describe Email::Receiver do
|
||||
end
|
||||
end
|
||||
|
||||
describe "with a content boundary" do
|
||||
let(:bounded_email) { File.read("#{Rails.root}/spec/fixtures/emails/boundary_email.txt") }
|
||||
let(:receiver) { Email::Receiver.new(bounded_email) }
|
||||
|
||||
it "does something" do
|
||||
receiver.process
|
||||
expect(receiver.body).to eq("I'll look into it, thanks!")
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
describe "with a valid email" do
|
||||
let(:reply_key) { "59d8df8370b7e95c5a49fbf86aeb2c93" }
|
||||
let(:valid_reply) { File.read("#{Rails.root}/spec/fixtures/emails/valid_reply.txt") }
|
||||
|
Reference in New Issue
Block a user