Sha256: 7026da47b88d7a7b0b1cf0f35d39be03b2cea907e175e11acf5f52116fc43299
Contents?: true
Size: 665 Bytes
Versions: 3
Compression:
Stored size: 665 Bytes
Contents
require "spec_helper" describe Rocx::Parts::Styles do include PartTestMacros context "when adding no additional styles" do before(:each) do @doc = described_class.new end it_should_output_correct_xml end context "after adding additional styles" do before(:each) do @doc = described_class.new paragraph_styles = { "w:ind" => {"w:firstLine" => "0", "w:left" => "0", "w:right" => "0"}, "w:jc" => {"w:val" => "left"} } style = Rocx::Style.new("coolStyle", "paragraph", {}, paragraph_styles) doc << style end it_should_output_correct_xml part: "styles_with_custom_style" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rocx-0.7.0 | spec/parts/styles_spec.rb |
rocx-0.6.0 | spec/parts/styles_spec.rb |
rocx-0.5.8 | spec/parts/styles_spec.rb |