Add test for "on day, name wrote" quote trigger

This commit is contained in:
riking 2014-09-09 16:24:20 -07:00
parent a0dccf7bc0
commit c1df25e856
2 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ describe Email::Receiver do
test_parse_body(fixture_file("emails/via_line.eml")).should == "Hello this email has content!"
end
it "removes an 'on date wrote' quoting line" do
test_parse_body(fixture_file("emails/on_wrote.eml")).should == "Sure, all you need to do is frobnicate the foobar and you'll be all set!"
end
it "removes the 'Previous Discussion' marker" do
test_parse_body(fixture_file("emails/previous.eml")).should == "This will not include the previous discussion that is present in this email."
end

BIN
spec/fixtures/emails/on_wrote.eml vendored Normal file

Binary file not shown.