Sha256: f9ebffa3155d8b65533a91ff6917df059b5f1809392b8244ffc4a220dde2778c
Contents?: true
Size: 877 Bytes
Versions: 48
Compression:
Stored size: 877 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]] {{nest}}" expect(template.format._render(:closed_content)).to eq( '<a class="cardtype known-card" href="/Basic">Basic</a>' \ " : [[link]] {{nest}}" ) end it "closed_content is rendered as type + raw" do template = Card.new name: "A+*right+*structure", type: "Html", content: "[[link]] {{nest}}" expect(template.format._render(:closed_content)).to eq( '<a class="cardtype known-card" href="/HTML">HTML</a> : [[link]] {{nest}}' ) end # it 'renders core as raw' do # trs = Card.fetch('*type+*right+*structure').format.render_core # expect(trs).to eq '{"type":"_left"}' # end end
Version data entries
48 entries across 48 versions & 1 rubygems