Sha256: 462656c4ce2f624db4bdff418781d6b3c5781e0e16bc48548a12ad2fb0539be3

Contents?: true

Size: 666 Bytes

Versions: 8

Compression:

Stored size: 666 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 href="/Basic" class="cardtype">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 href="/HTML" class="cardtype">HTML</a> : [[link]] {{inclusion}}'
    )
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wagn-1.14.4 mod/04_settings/spec/set/right/structure_spec.rb
wagn-1.14.3 mod/04_settings/spec/set/right/structure_spec.rb
wagn-1.14.2 mod/04_settings/spec/set/right/structure_spec.rb
wagn-1.14.1 mod/04_settings/spec/set/right/structure_spec.rb
wagn-1.14.0 mod/04_settings/spec/set/right/structure_spec.rb
wagn-1.14.0.pre3 mod/04_settings/spec/set/right/structure_spec.rb
wagn-1.14.0.pre2 mod/04_settings/spec/set/right/structure_spec.rb
wagn-1.14.0.pre1 mod/04_settings/spec/set/right/structure_spec.rb