Sha256: 48079c94eacdb588901580f883dd2b96fe11d9247c9878e7e80c610d441d40fd
Contents?: true
Size: 387 Bytes
Versions: 65
Compression:
Stored size: 387 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe "ERB helper" do it "should add a textile tag to ERB" do 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>} ERB.new(template).result.should == expected end end
Version data entries
65 entries across 65 versions & 8 rubygems