Sha256: d79e4a87e4524dfc083da978383508b0b37b8ded871cf8571641633cb67ac915
Contents?: true
Size: 968 Bytes
Versions: 1
Compression:
Stored size: 968 Bytes
Contents
require "spec_helper" describe OpenXml::Docx::Elements::WordProcessingDrawingAnchor do include ElementTestMacros it_should_use tag: :anchor, name: "word_processing_drawing_anchor" with_no_attributes_set do it_should_output "<wp:anchor/>", assign: false end true_false_attributes = %i(allowOverlap behindDoc hidden layoutInCell locked) true_false_attributes.each do |attr| for_attribute(attr) do with_value(true) do it_should_assign_successfully it_should_output_regular_xml end with_value("") do it_should_raise_an_exception end end end positive_integer_attributes = %i(distB distL distR distT relativeHeight) positive_integer_attributes.each do |attr| for_attribute(attr) do with_value(1234)do it_should_assign_successfully it_should_output_regular_xml end with_value(-1234) do it_should_raise_an_exception end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openxml-docx-0.10.0 | spec/elements/word_processing_drawing_anchor_spec.rb |