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