Ugly Hack: Remove improperly parsed headers from Mail::Message

This commit is contained in:
Robin Ward
2013-06-19 12:14:01 -04:00
parent 6491bda4ab
commit 82d1465d18
3 changed files with 98 additions and 4 deletions

View File

@ -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") }