Sha256: ca8606a79c07c2182d7b85b3452d82f5fa2ab34a6ea3e58453333e281557ab5f
Contents?: true
Size: 693 Bytes
Versions: 4
Compression:
Stored size: 693 Bytes
Contents
# -*- encoding : utf-8 -*- require 'wagn/spec_helper' 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}}') Card::Format.new(template)._render(:closed_content).should == '<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}}') Card::Format.new(template)._render(:closed_content).should == '<a href="/HTML" class="cardtype">HTML</a> : [[link]] {{inclusion}}' end end
Version data entries
4 entries across 4 versions & 1 rubygems