mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:19:10 +00:00
Add test for "on day, name wrote" quote trigger
This commit is contained in:
parent
a0dccf7bc0
commit
c1df25e856
@ -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
BIN
spec/fixtures/emails/on_wrote.eml
vendored
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user