Sha256: 8939c07355e270f91cc5b6167ed9ef68f2e771e71f9c22e9238860eaca675390
Contents?: true
Size: 952 Bytes
Versions: 2
Compression:
Stored size: 952 Bytes
Contents
require "spec_helper" describe OpenXml::DrawingML::Elements::HeadEnd do include ElementTestMacros it_should_use tag: :headEnd, name: "head_end" for_attribute(:length, displays_as: :len) do allowed = %i(lg med sm) with_values(allowed) do it_should_assign_successfully it_should_output_regular_xml end with_value(:bad_value) do it_should_raise_an_exception end end for_attribute(:type) do allowed = %i(arrow diamond none oval stealth triangle) with_values(allowed) do it_should_assign_successfully it_should_output_regular_xml end with_value(:bad_value) do it_should_raise_an_exception end end for_attribute(:width, displays_as: :w) do allowed = %i(lg med sm) with_values(allowed) do it_should_assign_successfully it_should_output_regular_xml end with_value(:bad_value) do it_should_raise_an_exception end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
openxml-docx-0.10.1 | spec/elements/drawingml/head_end_spec.rb |
openxml-docx-0.10.0 | spec/elements/drawingml/head_end_spec.rb |