test/flannel_test.rb in flannel-0.2.1 vs test/flannel_test.rb in flannel-0.2.3
- old
+ new
@@ -7,6 +7,12 @@
end
should "return nil if text is nil" do
assert_nil Flannel.quilt(nil)
end
+
+ should "parse paragraphs correctly" do
+ input = "\nThis is paragraph one.\n\nThis is paragraph two.\n\nThis is paragraph three. Watchout for the end of file.\n"
+ output = "<p>This is paragraph one.</p>\n\n<p>This is paragraph two.</p>\n\n<p>This is paragraph three. Watchout for the end of file.</p>"
+ assert_equal output, Flannel.quilt(input)
+ end
end