Sha256: 063605d65e9d0fede085a1c01e7e641d94713526aaf2a4b3bddc72ac42df8be3

Contents?: true

Size: 637 Bytes

Versions: 15

Compression:

Stored size: 637 Bytes

Contents

# coding: UTF-8
require 'test_helper'

class StripDownRender < Test::Unit::TestCase

  def setup
    @markdown = Redcarpet::Markdown.new(Redcarpet::Render::StripDown)
  end

  def test_basics
    markdown = <<-Markdown
# [Foo bar](https://github.com)
Markdown
    html = @markdown.render(markdown)
    html_equal "Foo bar\n", html
  end

  def test_insert_new_lines_char
    markdown = <<-Markdown
# Foo bar

Hello world! Please visit [this site](https://github.com/).

    class Foo
    end
Markdown

    html = @markdown.render(markdown)
    html_equal "Foo bar\nHello world! Please visit this site.\nclass Foo\nend\n", html
  end
end

Version data entries

15 entries across 12 versions & 3 rubygems

Version Path
climine-0.0.7 vendor/bundle/ruby/2.0.0/gems/redcarpet-3.0.0/test/stripdown_render_test.rb
climine-0.0.7 vendor/bundle/ruby/2.1.0/gems/redcarpet-3.0.0/test/stripdown_render_test.rb
climine-0.0.6 vendor/bundle/ruby/2.0.0/gems/redcarpet-3.0.0/test/stripdown_render_test.rb
climine-0.0.5 vendor/bundle/ruby/2.0.0/gems/redcarpet-3.0.0/test/stripdown_render_test.rb
redcarpet-3.1.1 test/stripdown_render_test.rb
redcarpet-3.1.0 test/stripdown_render_test.rb
climine-0.0.4 vendor/bundle/ruby/2.0.0/gems/redcarpet-3.0.0/test/stripdown_render_test.rb
climine-0.0.3 vendor/bundle/ruby/2.0.0/gems/redcarpet-3.0.0/test/stripdown_render_test.rb
climine-0.0.2 vendor/bundle/ruby/2.0.0/gems/redcarpet-3.0.0/test/stripdown_render_test.rb
climine-0.0.1 vendor/bundle/ruby/2.0.0/gems/redcarpet-3.0.0/test/stripdown_render_test.rb
candlepin-api-0.4.0 bundle/ruby/gems/redcarpet-2.3.0/test/stripdown_render_test.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/redcarpet-2.3.0/test/stripdown_render_test.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/redcarpet-2.3.0/test/stripdown_render_test.rb
redcarpet-3.0.0 test/stripdown_render_test.rb
redcarpet-2.3.0 test/stripdown_render_test.rb