Sha256: c60c5a44f3c4a0a4bcbc28f6674da2a408f8d1e7adf2bd008c8a8667d07885c0
Contents?: true
Size: 616 Bytes
Versions: 2
Compression:
Stored size: 616 Bytes
Contents
require "spec_helper" describe OpenXml::DrawingML::Elements::Offset do include ElementTestMacros it_should_use tag: :off, name: "offset" attributes = %i(x y) for_attribute(:x) do with_values([1, -1]) do it_should_assign_successfully it_should_output_regular_xml end with_values([1.1, :not_a_number]) do it_should_raise_an_exception end end for_attribute(:y) do with_values([1, -1]) do it_should_assign_successfully it_should_output_regular_xml end with_values([1.1, :not_a_number]) do it_should_raise_an_exception end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
openxml-docx-0.10.1 | spec/elements/drawingml/offset_spec.rb |
openxml-docx-0.10.0 | spec/elements/drawingml/offset_spec.rb |