Sha256: c22b2c9af6a0214d639991b19947ba8e4b954ca8be7805015e1d88783c5ce5e3
Contents?: true
Size: 816 Bytes
Versions: 7
Compression:
Stored size: 816 Bytes
Contents
require "spec_helper" describe OpenXml::Docx::Parts::Footer do include PartTestMacros context "with child elements" do before(:each) do @doc = described_class.new paragraph = OpenXml::Docx::Elements::Paragraph.new first_run = OpenXml::Docx::Elements::Run.new first_run << OpenXml::Docx::Elements::Text.new("This is just a test run.") paragraph << first_run second_run = OpenXml::Docx::Elements::Run.new second_run << OpenXml::Docx::Elements::Text.new("But this isn't!") paragraph << second_run doc << paragraph end it_should_output_correct_xml part: "footer_with_children" end context "with no elements" do before(:each) do @doc = described_class.new end it_should_output_correct_xml part: "empty_footer" end end
Version data entries
7 entries across 7 versions & 1 rubygems