Sha256: bf6a1f18129f9d1f4138edc9162f5ac7743b7bcf272871066033c86c3ca16a36
Contents?: true
Size: 998 Bytes
Versions: 6
Compression:
Stored size: 998 Bytes
Contents
require "spec_helper" describe OpenXml::Docx::Elements::WordProcessingDrawingWrapTight do include ElementTestMacros it_should_use tag: :wrapTight, name: "word_processing_drawing_wrap_tight" for_attribute(:distance_from_left) do with_value(1) do it_should_assign_successfully it_should_output "<wp:wrapTight distL=\"1\"/>" end with_value(-1) do it_should_raise_an_exception end end for_attribute(:distance_from_right) do with_value(1) do it_should_assign_successfully it_should_output "<wp:wrapTight distR=\"1\"/>" end with_value(-1) do it_should_raise_an_exception end end for_attribute(:wrap_text) do %i(bothSides largest left right).each do |good_value| with_value(good_value) do it_should_assign_successfully it_should_output "<wp:wrapTight wrapText=\"#{good_value}\"/>" end with_value(:bad_value) do it_should_raise_an_exception end end end end
Version data entries
6 entries across 6 versions & 1 rubygems