Sha256: acb53f68ae644ea19aab256fe750484566a3241ac010fb7460e5681916e14060

Contents?: true

Size: 688 Bytes

Versions: 18

Compression:

Stored size: 688 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
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
card-1.16.2 mod/04_settings/spec/set/right/structure_spec.rb
card-1.16.1 mod/04_settings/spec/set/right/structure_spec.rb
card-1.16.0 mod/04_settings/spec/set/right/structure_spec.rb
card-1.15.7 mod/04_settings/spec/set/right/structure_spec.rb
card-1.15.6 mod/04_settings/spec/set/right/structure_spec.rb
card-1.15.5 mod/04_settings/spec/set/right/structure_spec.rb
card-1.15.4 mod/04_settings/spec/set/right/structure_spec.rb
card-1.15.3 mod/04_settings/spec/set/right/structure_spec.rb
card-1.15.2 mod/04_settings/spec/set/right/structure_spec.rb
card-1.15.1 mod/04_settings/spec/set/right/structure_spec.rb
card-1.15.0 mod/04_settings/spec/set/right/structure_spec.rb
card-1.15.pre2 mod/04_settings/spec/set/right/structure_spec.rb
card-1.15.pre mod/04_settings/spec/set/right/structure_spec.rb
wagn-1.14.9 mod/04_settings/spec/set/right/structure_spec.rb
wagn-1.14.8 mod/04_settings/spec/set/right/structure_spec.rb
wagn-1.14.7 mod/04_settings/spec/set/right/structure_spec.rb
wagn-1.14.6 mod/04_settings/spec/set/right/structure_spec.rb
wagn-1.14.5 mod/04_settings/spec/set/right/structure_spec.rb