FIX: pinned topic excerpt is not properly truncated

This commit is contained in:
Régis Hanol
2013-05-10 12:28:17 +02:00
parent 942f168ab6
commit 297680c28d
2 changed files with 5 additions and 7 deletions

View File

@ -131,6 +131,7 @@ test
it "should truncate stuff properly" do
PrettyText.excerpt("hello world",5).should == "hello…"
PrettyText.excerpt("<p>hello</p><p>world</p>",6).should == "hello w&hellip;"
end
it "should insert a space between to Ps" do
@ -168,6 +169,7 @@ test
it "should handle nil" do
PrettyText.excerpt(nil,100).should == ''
end
end