]> git.openstreetmap.org Git - rails.git/blobdiff - test/lib/rich_text_test.rb
Detect <p> as richtext paragraph
[rails.git] / test / lib / rich_text_test.rb
index 3536db3989e7ffde8a2f539cc00a051e55eb9c98..929abf8230c033f1109d6edb44bb4efcf5ba7c97 100644 (file)
@@ -350,6 +350,11 @@ class RichTextTest < ActiveSupport::TestCase
     assert_equal "Something important here.", r.description
   end
 
     assert_equal "Something important here.", r.description
   end
 
+  def test_markdown_html_description
+    r = RichText.new("markdown", "<p>Can use HTML tags.</p>")
+    assert_equal "Can use HTML tags.", r.description
+  end
+
   private
 
   def assert_html(richtext, &block)
   private
 
   def assert_html(richtext, &block)