Sha256: aeae4d4b8bb4b7a42d94f238511f3f874e46733a60832ee3b54c6718ba4f246f

Contents?: true

Size: 413 Bytes

Versions: 9

Compression:

Stored size: 413 Bytes

Contents

require 'helper'

class TestRdiscount < Test::Unit::TestCase

  context "rdiscount" do
    setup do
      config = {
        'rdiscount' => { 'extensions' => ['smart'] },
        'markdown' => 'rdiscount'
      }
      @markdown = MarkdownConverter.new config
    end

    should "pass rdiscount 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_rdiscount.rb
jekyll-reloaded-0.12.1 test/test_rdiscount.rb
jekyll-reloaded-0.12 test/test_rdiscount.rb
spinto-jekyll-0.11.2.3 test/test_rdiscount.rb
spinto-jekyll-0.11.2.2 test/test_rdiscount.rb
spinto-jekyll-0.11.2.1 test/test_rdiscount.rb
jekyll-0.11.2 test/test_rdiscount.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/jekyll-0.11.0/test/test_rdiscount.rb
jekyll-0.11.0 test/test_rdiscount.rb