Sha256: 0239646b1878255a3cf4fa748d66f57ce9a30dfa2b3699cd734bfce196ccd4b5
Contents?: true
Size: 852 Bytes
Versions: 1
Compression:
Stored size: 852 Bytes
Contents
require "spec_helper" describe OpenXml::DrawingML::Elements::BlipFill do include ElementTestMacros it_should_use tag: :blipFill, name: "blip_fill" for_attribute(:dpi) do with_values([1, -1]) do it_should_assign_successfully it_should_output_regular_xml end with_value(:not_a_number) do it_should_raise_an_exception end end for_attribute(:rotate_with_shape) do with_value(true) do it_should_assign_successfully it_should_output "<pic:blipFill rotWithShape=\"true\"/>" end with_value(false) do it_should_assign_successfully it_should_output "<pic:blipFill rotWithShape=\"false\"/>" end with_value(:not_a_boolean) do it_should_raise_an_exception end end with_no_attributes_set do it_should_output "<pic:blipFill/>", assign: false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openxml-docx-0.10.1 | spec/elements/drawingml/blip_fill_spec.rb |