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