Sha256: a860ced5459f7ac8e3b4b4f7baa1d3af51a8e3203298aa9dcb027fffed727f11

Contents?: true

Size: 598 Bytes

Versions: 3

Compression:

Stored size: 598 Bytes

Contents

require 'minitest_helper'

module RenderAsMarkdown
  class TableTest < MiniTest::Unit::TestCase

    def test_h1
      h1 = RenderAsMarkdown::H1.new 'header 1'
      assert_equal h1.to_s, <<-eos
header 1
========

eos
    end

    def test_h2
      h2 = RenderAsMarkdown::H2.new 'header 2'
      assert_equal h2.to_s, <<-eos
header 2
--------

eos
    end


    def test_strip_spaces
      # we have to make sure, not to underline spaces
      h1 = RenderAsMarkdown::H1.new '      <!-- spaces -->       '
      assert_equal h1.render, <<-eos
<!-- spaces -->
===============

eos

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
render-as-markdown-0.0.6 test/header_test.rb
render-as-markdown-0.0.5 test/header_test.rb
render-as-markdown-0.0.4 test/header_test.rb