Sha256: 6765e0129ea9be3fc3fd3b8523ab9f73232d18e294b77680c6c5f3965ff337e7

Contents?: true

Size: 840 Bytes

Versions: 14

Compression:

Stored size: 840 Bytes

Contents

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

describe Card::Set::Right::Structure do
  it "closed_content is rendered as type + raw" do
    template = Card.new(name: 'A+*right+*structure', content: '[[link]] {{inclusion}}')
    expect(template.format._render(:closed_content)).to eq(
      '<a class="cardtype known-card" href="/Basic">Basic</a> : [[link]] {{inclusion}}'
    )
  end

  it "closed_content is rendered as type + raw" do
    template = Card.new(name: 'A+*right+*structure', type: 'Html', content: '[[link]] {{inclusion}}')
    expect(template.format._render(:closed_content)).to eq(
      '<a class="cardtype known-card" href="/HTML">HTML</a> : [[link]] {{inclusion}}'
    )
  end

=begin
  it 'renders core as raw' do
    trs = Card.fetch('*type+*right+*structure').format.render_core
    expect(trs).to eq '{"type":"_left"}'
  end
=end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
card-1.17.4 mod/04_settings/spec/set/right/structure_spec.rb
card-1.17.3 mod/04_settings/spec/set/right/structure_spec.rb
card-1.17.2 mod/04_settings/spec/set/right/structure_spec.rb
card-1.17.1 mod/04_settings/spec/set/right/structure_spec.rb
card-1.17.0 mod/04_settings/spec/set/right/structure_spec.rb
card-1.16.15 mod/04_settings/spec/set/right/structure_spec.rb
card-1.16.14 mod/04_settings/spec/set/right/structure_spec.rb
card-1.16.13 mod/04_settings/spec/set/right/structure_spec.rb
card-1.16.12 mod/04_settings/spec/set/right/structure_spec.rb
card-1.16.11 mod/04_settings/spec/set/right/structure_spec.rb
card-1.16.10 mod/04_settings/spec/set/right/structure_spec.rb
card-1.16.9 mod/04_settings/spec/set/right/structure_spec.rb
card-1.16.8 mod/04_settings/spec/set/right/structure_spec.rb
card-1.16.7 mod/04_settings/spec/set/right/structure_spec.rb