Sha256: 113b078780db1b0b167709b8e79ef4bb673e1d8d855518dceff4f0d683092051

Contents?: true

Size: 591 Bytes

Versions: 6

Compression:

Stored size: 591 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :grpSpPr, name: "word_processing_groups_group_shape_properties"

  for_attribute(:bw_mode) do
    %i(auto black blackGray blackWhite clr gray grayWhite hidden invGray ltGray white).each do |good_value|
      with_value(good_value) do
        it_should_assign_successfully
        it_should_output "<wpg:grpSpPr bwMode=\"#{good_value}\"/>"
      end
    end

    with_value(:no_good) do
      it_should_raise_an_exception
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

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