Sha256: 76d0ace30e328494899a25e9043f268990bd5c173f896f1a87424eff0748fd5a

Contents?: true

Size: 476 Bytes

Versions: 34

Compression:

Stored size: 476 Bytes

Contents

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

class MarkdownFilterTest < Test::Unit::TestCase

  def test_filter_name
    assert_equal 'Markdown', MarkdownFilter.filter_name
  end

  def test_filter
    assert_equal '<p><strong>strong</strong></p>', MarkdownFilter.filter('**strong**')
  end
  
  def test_filter_with_quotes
    assert_equal "<h1>Radiant&#8217;s &#8220;filters&#8221; rock!</h1>", 
      MarkdownFilter.filter("# Radiant's \"filters\" rock!")
  end

end

Version data entries

34 entries across 34 versions & 4 rubygems

Version Path
radiant-markdown_filter-extension-1.0.1 test/unit/markdown_filter_test.rb
radiant-markdown_filter-extension-1.0.0 test/unit/markdown_filter_test.rb
radiant-1.0.0.rc2 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-1.0.0.rc1 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiantcms-couchrest_model-0.2.4 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiantcms-couchrest_model-0.2.2 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiantcms-couchrest_model-0.2.1 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiantcms-couchrest_model-0.2 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiantcms-couchrest_model-0.1.9 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiantcms-couchrest_model-0.1.8 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiantcms-couchrest_model-0.1.7 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiantcms-couchrest_model-0.1.6 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiantcms-couchrest_model-0.1.5 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiantcms-couchrest_model-0.1.4 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.7.2 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.9.1 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.8.2 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.9.0.rc2 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-rc-0.9.0 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.8.1 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb