Sha256: 6123c40de6a6f2450d914cddb10c0b217abfbd2978d22a42defbb2dee6fa1072

Contents?: true

Size: 684 Bytes

Versions: 9

Compression:

Stored size: 684 Bytes

Contents

#!/usr/bin/env ruby

require File.join(File.dirname(__FILE__), 'helper')

class TestFormatters < Test::Unit::TestCase
  
  generate_formatter_tests('html') do |doc|
    RedCloth.new(doc['in']).to_html
  end
  
  def test_html_orphan_parenthesis_in_link_can_be_followed_by_punctuation_and_words
    assert_nothing_raised { RedCloth.new(%Q{Test "(read this":http://test.host), ok}).to_html }
  end
  
  generate_formatter_tests('latex') do |doc|
    RedCloth.new(doc['in']).to_latex
  end

  def test_latex_orphan_parenthesis_in_link_can_be_followed_by_punctuation_and_words
    assert_nothing_raised { RedCloth.new(%Q{Test "(read this":http://test.host), ok}).to_latex }
  end
  

end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
jeremy-RedCloth-4.1.1 test/test_formatters.rb
BBRedCloth-0.8.4 test/test_formatters.rb
BBRedCloth-0.8.3 test/test_formatters.rb
BBRedCloth-0.8.2 test/test_formatters.rb
BBRedCloth-0.8.1 test/test_formatters.rb
BBRedCloth-0.8.0 test/test_formatters.rb
RedCloth-4.1.9 test/test_formatters.rb
RedCloth-4.1.9-x86-mswin32-60 test/test_formatters.rb
RedCloth-4.1.9-universal-java test/test_formatters.rb