Sha256: c15f8ae1abfc2b96833c600e4836e44ba711afcbc4f92bf6d1524959cfccb13f

Contents?: true

Size: 405 Bytes

Versions: 7

Compression:

Stored size: 405 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'wagn/spec_helper'

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

7 entries across 7 versions & 1 rubygems

Version Path
wagn-1.12.13 spec/mods/core/chunks/literal_spec.rb
wagn-1.12.12 spec/mods/core/chunks/literal_spec.rb
wagn-1.12.11 spec/mods/core/chunks/literal_spec.rb
wagn-1.12.10 spec/mods/core/chunks/literal_spec.rb
wagn-1.12.9 spec/mods/core/chunks/literal_spec.rb
wagn-1.12.8 spec/mods/core/chunks/literal_spec.rb
wagn-1.12.7 spec/mods/core/chunks/literal_spec.rb