Sha256: 4fa472dce2fcd1b1b482b4ee05490a2434e76ebbcb2b7ec5578a073a78c9d977

Contents?: true

Size: 491 Bytes

Versions: 2

Compression:

Stored size: 491 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :wsp, name: "word_processing_shapes_shape"

  with_no_attributes_set do
    it_should_output "<wps:wsp/>", assign: false
  end

  for_attribute(:normalEastAsianFlow) do
    with_value(true)do
      it_should_assign_successfully
      it_should_output_regular_xml
    end

    with_value("invalid") 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/word_processing_shapes_shape_spec.rb
openxml-docx-0.10.0 spec/elements/word_processing_shapes_shape_spec.rb