Sha256: b75334caeee20db7192e21ae4104cfe6cbb4dc093f2072ec9907c7d8356e7754
Contents?: true
Size: 1.09 KB
Versions: 5
Compression:
Stored size: 1.09 KB
Contents
require "spec_helper" describe OpenXml::DrawingML::Elements::HeadEnd do include ElementTestMacros it_should_use tag: :headEnd, name: "head_end" for_attribute(:length) do %i(lg med sm).each do |allowed_value| with_value(allowed_value) do it_should_assign_successfully it_should_output "<a:headEnd len=\"#{allowed_value}\"/>" end end with_value(:bad_value) do it_should_raise_an_exception end end for_attribute(:type) do %i(arrow diamond none oval stealth triangle).each do |allowed_value| with_value(allowed_value) do it_should_assign_successfully it_should_output "<a:headEnd type=\"#{allowed_value}\"/>" end end with_value(:bad_value) do it_should_raise_an_exception end end for_attribute(:width, displays_as: :w) do %i(lg med sm).each do |allowed_value| with_value(allowed_value) do it_should_assign_successfully it_should_output "<a:headEnd w=\"#{allowed_value}\"/>" end end with_value(:bad_value) do it_should_raise_an_exception end end end
Version data entries
5 entries across 5 versions & 1 rubygems