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-0.6.0 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.6.1 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.6.3 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.6.2 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.6.5.1 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.6.4 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.6.5 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.6.6 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.6.7 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.6.8 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.6.9 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.7.0 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.8.0 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb
radiant-0.7.1 vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb