Sha256: c2f03aadbfc70b63f385fac6da0941af276dc0ed1e569c2afdc9e5e4d1ca4b97
Contents?: true
Size: 854 Bytes
Versions: 3
Compression:
Stored size: 854 Bytes
Contents
require "spec_helper" describe OpenXml::Docx::Elements::Control do include ElementTestMacros it_should_use tag: :control, name: "control" for_attribute(:id) do with_value("rId5") do it_should_assign_successfully it_should_output "<w:control r:id=\"rId5\"/>" end with_value("") do it_should_raise_an_exception end end for_attribute(:unique_name) do with_value("CheckBox1") do it_should_assign_successfully it_should_output "<w:control w:name=\"CheckBox1\"/>" end with_value("") do it_should_raise_an_exception end end for_attribute(:shape_id) do with_value("_x0000_s1027") do it_should_assign_successfully it_should_output "<w:control w:shapeid=\"_x0000_s1027\"/>" end with_value("") do it_should_raise_an_exception end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
openxml-docx-0.9.0 | spec/elements/control_spec.rb |
openxml-docx-0.8.0 | spec/elements/control_spec.rb |
openxml-docx-0.8.0.beta1 | spec/elements/control_spec.rb |