Sha256: 501b60d7401eb736c62ef65fd447bfc94afdd665fb2dc55ad378d2108288b4bb
Contents?: true
Size: 656 Bytes
Versions: 4
Compression:
Stored size: 656 Bytes
Contents
require 'spec_helper' module CiteProc module Ruby describe 'Renderer#render_macro' do let(:renderer) { Renderer.new } let(:node) { CSL::Style::Macro.new } let(:item) { i = CiteProc::CitationItem.new(:id => 'ID-1') i.data = CiteProc::Item.new(:id => 'ID-1') i } it 'returns an empty string when empty' do renderer.render(item, node).should == '' end it 'renders each child' do node << CSL::Style::Text.new(:value => 'foo') node << CSL::Style::Text.new(:value => 'bar') renderer.render(item, node).should == 'foobar' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems