Sha256: c6f48c8e4f51be430b26f1aa32d8b9d515ed0b34ec5bf69a13fb06783f09340b

Contents?: true

Size: 519 Bytes

Versions: 2

Compression:

Stored size: 519 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :spPr, name: "word_processing_shapes_shape_properties"

  for_attribute(:bwMode) do
    allowed = %i(auto black blackGray blackWhite clr gray grayWhite hidden invGray ltGray white)
    with_values(allowed) do
      it_should_assign_successfully
      it_should_output_regular_xml
    end

    with_value(:notRight) 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_properties_spec.rb
openxml-docx-0.10.0 spec/elements/word_processing_shapes_shape_properties_spec.rb