Sha256: 71504da47e73fd1de5ad2717944826b83d3f40c747b8a635a05c9d49f2c94de9
Contents?: true
Size: 637 Bytes
Versions: 1
Compression:
Stored size: 637 Bytes
Contents
require "spec_helper" describe OpenXml::Docx::Properties::WidowControl do include ValuePropertyTestMacros it_should_use tag: :widowControl, name: "widow_control", value: true with_value(:on) do it_should_work it_should_output "<w:widowControl w:val=\"on\"/>" end with_value(:off) do it_should_work it_should_output "<w:widowControl w:val=\"off\"/>" end with_value(true) do it_should_work it_should_output "<w:widowControl/>" end with_value(false) do it_should_work it_should_output "<w:widowControl w:val=\"false\"/>" end with_value(nil) do it_should_not_work end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openxml-docx-0.10.6 | spec/properties/widow_control_spec.rb |