Sha256: 103876c1e2f1532ef502c158e92bdbf5f904293c58b6ca7103b36b2c4d0947b1

Contents?: true

Size: 351 Bytes

Versions: 50

Compression:

Stored size: 351 Bytes

Contents

require 'test_helper'

class TestBasics < Minitest::Test
  def setup
    @doc = CommonMarker.render_doc('Hi *there*')
  end

  def test_to_html
    assert_equal "<p>Hi <em>there</em></p>\n", @doc.to_html
  end

  def test_markdown_to_html
    html = CommonMarker.render_html('Hi *there*')
    assert_equal "<p>Hi <em>there</em></p>\n", html
  end
end

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
commonmarker-0.18.2 test/test_basics.rb
commonmarker-0.18.1 test/test_basics.rb
commonmarker-0.18.0 test/test_basics.rb
commonmarker-0.17.13 test/test_basics.rb
commonmarker-0.17.12 test/test_basics.rb
commonmarker-0.17.11 test/test_basics.rb
commonmarker-0.17.10 test/test_basics.rb
tdiary-5.0.8 vendor/bundle/gems/commonmarker-0.17.9/test/test_basics.rb
commonmarker-0.17.9 test/test_basics.rb
commonmarker-0.17.8 test/test_basics.rb
commonmarker-0.17.7.1 test/test_basics.rb
commonmarker-0.17.7 test/test_basics.rb
commonmarker-0.17.6 test/test_basics.rb
commonmarker-0.17.5 test/test_basics.rb
commonmarker-0.17.4 test/test_basics.rb
commonmarker-0.17.2 test/test_basics.rb
commonmarker-0.17.1 test/test_basics.rb
commonmarker-0.17.0 test/test_basics.rb
commonmarker-0.16.8 test/test_basics.rb
commonmarker-0.16.7 test/test_basics.rb