Sha256: b4b9672870072d050ef69cb3b16982e0ff18d203a2dec536238ca97749781516

Contents?: true

Size: 403 Bytes

Versions: 6

Compression:

Stored size: 403 Bytes

Contents

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

describe Card::Content::Chunk::EscapedLiteral, 'literal chunk tests' do
  it 'should handle escaped link' do
    expect(render_content('write this: \[[text]]'))
      .to eq('write this: <span>[</span>[text]]')
  end

  it 'should handle escaped nest' do
    expect(render_content('write this: \{{cardname}}'))
      .to eq('write this: <span>{</span>{cardname}}')
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
card-1.18.6 mod/01_core/spec/chunk/literal_spec.rb
card-1.18.5 mod/01_core/spec/chunk/literal_spec.rb
card-1.18.4 mod/01_core/spec/chunk/literal_spec.rb
card-1.18.3 mod/01_core/spec/chunk/literal_spec.rb
card-1.18.2 mod/01_core/spec/chunk/literal_spec.rb
card-1.18.1 mod/01_core/spec/chunk/literal_spec.rb