Sha256: 0d70c7ae757e0af01fe34f17c4298b1d92564bfc82b550d12e88a184b4028b87

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 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_regular_xml
    end

    with_value(:invalidGeometry) 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/preset_geometry_spec.rb
openxml-docx-0.10.0 spec/elements/drawingml/preset_geometry_spec.rb