Sha256: 40fe816e1e3034e724afc57bd35d70c04de6afe78a790d9801e59049a4958cb6
Contents?: true
Size: 1.19 KB
Versions: 5
Compression:
Stored size: 1.19 KB
Contents
require "spec_helper" describe OpenXml::DrawingML::Elements::PresetTextWarp do include ElementTestMacros it_should_use tag: :prstTxWarp, name: "preset_text_warp" presets = %i(textArchDown textArchDownPour textArchUp textArchUpPour textButton textButtonPour textCanDown textCanUp textCascadeDown textCascadeUp textChevron textChevronInverted textCircle textCirclePour textCurveDown textCurveUp textDeflate textDeflateBottom textDeflateInflate textDeflateTop textDoubleWave1 textFadeDown textFadeLeft textFadeRight textFadeUp textInflate textInflateBottom textInflateTop textNoShape textPlain textRingInside textRingOutside textSlantDown textSlantUp textStop textTriangle textTriangleInverted textWave1 textWave2 textWave4) for_attribute(:preset) do presets.each do |preset| with_value(preset) do it_should_assign_successfully it_should_output "<a:prstTxWarp prst=\"#{preset}\"/>" end end with_values([1, false, :incorrect]) do it_should_raise_an_exception end end end
Version data entries
5 entries across 5 versions & 1 rubygems