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

Version Path
openxml-docx-0.10.6 spec/elements/drawingml/preset_text_warp_spec.rb
openxml-docx-0.10.5 spec/elements/drawingml/preset_text_warp_spec.rb
openxml-docx-0.10.4 spec/elements/drawingml/preset_text_warp_spec.rb
openxml-docx-0.10.3 spec/elements/drawingml/preset_text_warp_spec.rb
openxml-docx-0.10.2 spec/elements/drawingml/preset_text_warp_spec.rb