Sha256: d2e66476599b09b8542c6354acbdb7b26d8308348d6797315938fffceabce9c6

Contents?: true

Size: 437 Bytes

Versions: 5

Compression:

Stored size: 437 Bytes

Contents

require "spec_helper"

describe OpenXml::DrawingML::Elements::PresetGeometry do
  include ElementTestMacros

  it_should_use tag: :prstGeom, name: "preset_geometry"

  for_attribute(:preset, displays_as: :prst) do
    with_value(:roundRect) do
      it_should_assign_successfully
      it_should_output "<a:prstGeom prst=\"roundRect\"/>"
    end

    with_value(:invalidGeometry) 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_geometry_spec.rb
openxml-docx-0.10.5 spec/elements/drawingml/preset_geometry_spec.rb
openxml-docx-0.10.4 spec/elements/drawingml/preset_geometry_spec.rb
openxml-docx-0.10.3 spec/elements/drawingml/preset_geometry_spec.rb
openxml-docx-0.10.2 spec/elements/drawingml/preset_geometry_spec.rb