Sha256: 83725e8ad768d300be43712111593182a49c5e75c589c8781e9e839399dbdf9a

Contents?: true

Size: 408 Bytes

Versions: 9

Compression:

Stored size: 408 Bytes

Contents

#!/usr/bin/env ruby

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

class TestErb < Test::Unit::TestCase

  def test_redcloth_erb
    template = %{<%=t "This new ERB tag makes is so _easy_ to use *RedCloth*" %>}
    expected = %{<p>This new <span class="caps">ERB</span> tag makes is so <em>easy</em> to use <strong>RedCloth</strong></p>}
    assert_equal expected, ERB.new(template).result
  end

end

Version data entries

9 entries across 9 versions & 3 rubygems

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