Better HTML emails, smarter email digests, new email section in admin with digest preview

This commit is contained in:
Robin Ward
2013-06-03 16:12:24 -04:00
parent f030d9b420
commit 0b97ea6345
69 changed files with 552 additions and 443 deletions

View File

@ -146,6 +146,10 @@ test
PrettyText.excerpt("<a href='http://cnn.com'>cnn</a>",3).should == "<a href='http://cnn.com'>cnn</a>"
end
it "uses an ellipsis instead of html entities if provided with the option" do
PrettyText.excerpt("<a href='http://cnn.com'>cnn</a>", 2, text_entities: true).should == "<a href='http://cnn.com'>cn...</a>"
end
it "should truncate links" do
PrettyText.excerpt("<a href='http://cnn.com'>cnn</a>",2).should == "<a href='http://cnn.com'>cn&hellip;</a>"
end