Sha256: 6abfa5ee3db04ab458e72a36f39c588a2b84b2d4e2006b27870fb190dfbed378
Contents?: true
Size: 1.64 KB
Versions: 6
Compression:
Stored size: 1.64 KB
Contents
require "spec_helper" describe OpenXml::Docx::Elements::FontSig do include ElementTestMacros it_should_use tag: :sig, name: "font_sig" for_attribute(:csb0) do with_value("F0E1B2E3") do it_should_assign_successfully it_should_output "<w:sig w:csb0=\"F0E1B2E3\"/>" end with_values(["FF","Not Hex","FFFFFFFFFF"]) do it_should_raise_an_exception end end for_attribute(:csb1) do with_value("F0E1B2E3") do it_should_assign_successfully it_should_output "<w:sig w:csb1=\"F0E1B2E3\"/>" end with_values(["FF","Not Hex","FFFFFFFFFF"]) do it_should_raise_an_exception end end for_attribute(:usb0) do with_value("F0E1B2E3") do it_should_assign_successfully it_should_output "<w:sig w:usb0=\"F0E1B2E3\"/>" end with_values(["FF","Not Hex","FFFFFFFFFF"]) do it_should_raise_an_exception end end for_attribute(:usb1) do with_value("F0E1B2E3") do it_should_assign_successfully it_should_output "<w:sig w:usb1=\"F0E1B2E3\"/>" end with_values(["FF","Not Hex","FFFFFFFFFF"]) do it_should_raise_an_exception end end for_attribute(:usb2) do with_value("F0E1B2E3") do it_should_assign_successfully it_should_output "<w:sig w:usb2=\"F0E1B2E3\"/>" end with_values(["FF","Not Hex","FFFFFFFFFF"]) do it_should_raise_an_exception end end for_attribute(:usb3) do with_value("F0E1B2E3") do it_should_assign_successfully it_should_output "<w:sig w:usb3=\"F0E1B2E3\"/>" end with_values(["FF","Not Hex","FFFFFFFFFF"]) do it_should_raise_an_exception end end end
Version data entries
6 entries across 6 versions & 1 rubygems