test/toto_test.rb in toto-0.2.1 vs test/toto_test.rb in toto-0.2.2
- old
+ new
@@ -109,9 +109,10 @@
:body => "Well,\nhello ~\n, *stranger*."
}, @config.merge(:markdown => false, :summary => {:max => 150, :delim => /~\n/}))
end
should("split the article at the delimiter") { topic.summary }.equals "Well,\nhello"
+ should("not have the delimiter in the body") { topic.body !~ /~/ }
end
context "with everything specified" do
setup do
Toto::Article.new({