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