Sha256: 67adef82887f7a58519425bf309621266867b3345a3c0f45db8126042a05d4c1
Contents?: true
Size: 1.01 KB
Versions: 8
Compression:
Stored size: 1.01 KB
Contents
# coding: UTF-8 require 'test_helper' class StripDownRender < Redcarpet::TestCase def setup @parser = Redcarpet::Markdown.new(Redcarpet::Render::StripDown) end def test_titles markdown = "# Foo bar" output = @parser.render(markdown) assert_equal "Foo bar\n", output end def test_code_blocks markdown = "\tclass Foo\n\tend" output = @parser.render(markdown) assert_equal "class Foo\nend\n", output end def test_images markdown = "Look at this \n" \ "And this: " expected = "Look at this picture http://example.org/picture.png\n" \ "And this: http://example.org/image.jpg\n" output = @parser.render(markdown) assert_equal expected, output end def test_links markdown = "Here's an [example](https://github.com)" expected = "Here's an example (https://github.com)\n" output = @parser.render(markdown) assert_equal expected, output end end
Version data entries
8 entries across 8 versions & 2 rubygems