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

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/RedCloth-4.3.3/spec/erb_spec.rb
RedCloth-4.3.3 spec/erb_spec.rb
gv-RedCloth-4.3.2 spec/erb_spec.rb
RedCloth-4.3.2 spec/erb_spec.rb
RedCloth-4.3.1 spec/erb_spec.rb
RedCloth-4.3.0 spec/erb_spec.rb
parity-RedCloth-4.2.13 spec/erb_spec.rb
parity-RedCloth-4.2.12 spec/erb_spec.rb
parity-RedCloth-4.2.11 spec/erb_spec.rb
parity-RedCloth-4.2.10 spec/erb_spec.rb
parity-RedCloth-4.2.9 spec/erb_spec.rb
YSRedCloth-4.2.18 spec/erb_spec.rb
assplecake-RedCloth-4.2.10 spec/erb_spec.rb
YSRedCloth-4.2.17 spec/erb_spec.rb
YSRedCloth-4.2.16 spec/erb_spec.rb
gv-RedCloth-4.2.9 spec/erb_spec.rb
YSRedCloth-4.2.15 spec/erb_spec.rb
YSRedCloth-4.2.14 spec/erb_spec.rb
YSRedCloth-4.2.13 spec/erb_spec.rb
YSRedCloth-4.2.12 spec/erb_spec.rb