Sha256: 1c751b360b5e0551222f4314264467f8ae731db2b52addb6d0a9a907e6d20c3b

Contents?: true

Size: 576 Bytes

Versions: 9

Compression:

Stored size: 576 Bytes

Contents

require File.dirname(__FILE__) + '/helper'

class TestRedcarpet < Test::Unit::TestCase
  context "redcarpet" do
    setup do
      config = {
        'redcarpet' => { 'extensions' => ['smart'] },
        'markdown' => 'redcarpet'
      }
      @markdown = MarkdownConverter.new config
    end

    should "pass redcarpet options" do
      assert_equal "<h1>Some Header</h1>", @markdown.convert('# Some Header #').strip
    end
    
    should "pass redcarpet extensions" do
      assert_equal "<p>&ldquo;smart&rdquo;</p>", @markdown.convert('"smart"').strip
    end
  end
end

Version data entries

9 entries across 9 versions & 4 rubygems

Version Path
jekyll-reloaded-0.12.2 test/test_redcarpet.rb
jekyll-reloaded-0.12.1 test/test_redcarpet.rb
jekyll-reloaded-0.12 test/test_redcarpet.rb
spinto-jekyll-0.11.2.3 test/test_redcarpet.rb
spinto-jekyll-0.11.2.2 test/test_redcarpet.rb
spinto-jekyll-0.11.2.1 test/test_redcarpet.rb
jekyll-0.11.2 test/test_redcarpet.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/jekyll-0.11.0/test/test_redcarpet.rb
jekyll-0.11.0 test/test_redcarpet.rb