test/toto_test.rb in toto-0.2.3 vs test/toto_test.rb in toto-0.2.4
- old
+ new
@@ -129,10 +129,10 @@
should("parse the date") { [topic[:date].month, topic[:date].year] }.equals [10, 1976]
should("use the slug") { topic.slug }.equals "wizard-of-oz"
should("use the author") { topic.author }.equals "toetoe"
context "and long first paragraph" do
- should("create a valid summary") { topic.summary }.equals "<p>" + "a little bit of text." * 5 + "</p>\n"
+ should("create a valid summary") { topic.summary }.equals "<p>" + ("a little bit of text." * 5).chop + "…</p>\n"
end
context "and a short first paragraph" do
setup do
@config[:markdown] = false