Sha256: 34553905bb62962b6641eb14a29eb1a69145b33133fba09bf87d81c0d745ea3d
Contents?: true
Size: 951 Bytes
Versions: 2
Compression:
Stored size: 951 Bytes
Contents
require "spec_helper" describe OpenXml::DrawingML::Elements::TailEnd do include ElementTestMacros it_should_use tag: :tailEnd, name: "tail_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/tail_end_spec.rb |
openxml-docx-0.10.0 | spec/elements/drawingml/tail_end_spec.rb |