Sha256: 2d203f118d113f20ca523d44d135b3900b6b50de99208366e24bdbff309c5c6e

Contents?: true

Size: 378 Bytes

Versions: 4

Compression:

Stored size: 378 Bytes

Contents

# -*- encoding : utf-8 -*-

describe Card::Chunk::EscapedLiteral, "literal chunk tests" do

  it "should handle escaped link" do
    render_content('write this: \[[text]]').should == 'write this: <span>[</span>[text]]'
  end

  it "should handle escaped inclusion" do
    render_content('write this: \{{cardname}}').should == 'write this: <span>{</span>{cardname}}'
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wagn-1.13.0 spec/mod/core/chunk/literal_spec.rb
wagn-1.13.0.pre2 spec/mods/core/chunks/literal_spec.rb
wagn-1.13.0.pre1 spec/mods/core/chunks/literal_spec.rb
wagn-1.13.0.pre spec/mods/core/chunks/literal_spec.rb