Sha256: f8d483d1a6e9cf10eba751b3e9bf160c5bcccf523adc7206db8de63531f817bb

Contents?: true

Size: 404 Bytes

Versions: 4

Compression:

Stored size: 404 Bytes

Contents

#!/usr/bin/env ruby

require File.expand_path('../helper', __FILE__)

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

4 entries across 4 versions & 1 rubygems

Version Path
BBRedCloth-0.9.0.alpha1 test/test_erb.rb
BBRedCloth-0.8.8 test/test_erb.rb
BBRedCloth-0.8.7 test/test_erb.rb
BBRedCloth-0.8.6 test/test_erb.rb