Sha256: bc55a3d120a35e9462172f84014a86f1bb0eead6f78a6c1f44823ecedd11ff78
Contents?: true
Size: 585 Bytes
Versions: 5
Compression:
Stored size: 585 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(:bw_mode) do %i(auto black blackGray blackWhite clr gray grayWhite hidden invGray ltGray white).each do |allowed_value| with_value(allowed_value) do it_should_assign_successfully it_should_output "<wps:spPr bwMode=\"#{allowed_value}\"/>" end end with_value(:notRight) do it_should_raise_an_exception end end end
Version data entries
5 entries across 5 versions & 1 rubygems