Sha256: 495553349e24c4ff086f71978eaaab4c0f61c9d93eae153aa604178881ecdde8
Contents?: true
Size: 392 Bytes
Versions: 1
Compression:
Stored size: 392 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>} expect(ERB.new(template).result).to eq(expected) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
RedCloth-4.3.4 | spec/erb_spec.rb |