Sha256: 58f1259d4335c5a4686de47dcb3e54220f13887167cd884e408afe6145562715
Contents?: true
Size: 686 Bytes
Versions: 5
Compression:
Stored size: 686 Bytes
Contents
require "spec_helper" describe OpenXml::DrawingML::Elements::Extents do include ElementTestMacros it_should_use tag: :ext, name: "extents" attributes = { extent_length: :cx, extent_width: :cy } for_attribute(:extent_length) do with_value(1) do it_should_assign_successfully it_should_output "<a:ext cx=\"1\"/>" end with_values([-1, 1.1, :not_a_number]) do it_should_raise_an_exception end end for_attribute(:extent_width) do with_value(1) do it_should_assign_successfully it_should_output "<a:ext cy=\"1\"/>" end with_values([-1, 1.1, :not_a_number]) do it_should_raise_an_exception end end end
Version data entries
5 entries across 5 versions & 1 rubygems