Sha256: f46b8a9b82f765342e54526a4caceecb8ff525e959f05a940a92215d567f2813
Contents?: true
Size: 630 Bytes
Versions: 14
Compression:
Stored size: 630 Bytes
Contents
require 'test_helper' class SmartPunctTest < Minitest::Test smart_punct = open_spec_file('smart_punct.txt') smart_punct.each do |testcase| doc = CommonMarker.render_doc(testcase[:markdown], :smart) define_method("test_smart_punct_example_#{testcase[:example]}") do actual = doc.to_html.strip assert_equal testcase[:html], actual, testcase[:markdown] end end def test_smart_hardbreak_no_spaces_render_doc markdown = "\"foo\"\nbaz" result = "<p>“foo”<br />\nbaz</p>\n" doc = CommonMarker.render_doc(markdown, :smart) assert_equal result, doc.to_html([:hardbreaks]) end end
Version data entries
14 entries across 14 versions & 1 rubygems