Sha256: 64e2cecd57ac008e1d2427f2ba9503048714c50f8d1f7b2cb4040bc8b75cbc99

Contents?: true

Size: 532 Bytes

Versions: 6

Compression:

Stored size: 532 Bytes

Contents

require "spec_helper"

describe OpenXml::Docx::Elements::WordProcessingDrawingWrapPolygon do
  include ElementTestMacros

  it_should_use tag: :wrapPolygon, name: "word_processing_drawing_wrap_polygon"

  for_attribute(:edited) do
    with_value(true) do
      it_should_assign_successfully
      it_should_output "<wp:wrapPolygon edited=\"true\"/>"
    end

    with_value(:no_good) do
      it_should_raise_an_exception
    end
  end

  with_no_attributes_set do
    it_should_output "<wp:wrapPolygon/>", assign: false
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
openxml-docx-0.10.6 spec/elements/word_processing_drawing_wrap_polygon_spec.rb
openxml-docx-0.10.5 spec/elements/word_processing_drawing_wrap_polygon_spec.rb
openxml-docx-0.10.4 spec/elements/word_processing_drawing_wrap_polygon_spec.rb
openxml-docx-0.10.3 spec/elements/word_processing_drawing_wrap_polygon_spec.rb
openxml-docx-0.10.2 spec/elements/word_processing_drawing_wrap_polygon_spec.rb
openxml-docx-0.10.1 spec/elements/word_processing_drawing_wrap_polygon_spec.rb