Sha256: ca12d2afd206536f0e1abc7906e8ffba744806a37e2ef2b57b2c8d6dfae8e1e2
Contents?: true
Size: 836 Bytes
Versions: 5
Compression:
Stored size: 836 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_value(1) do it_should_assign_successfully it_should_output "<a:off x=\"1\"/>" end with_value(-1) do it_should_assign_successfully it_should_output "<a:off x=\"-1\"/>" end with_values([1.1, :not_a_number]) do it_should_raise_an_exception end end for_attribute(:y) do with_value(1) do it_should_assign_successfully it_should_output "<a:off y=\"1\"/>" end with_value(-1) do it_should_assign_successfully it_should_output "<a:off y=\"-1\"/>" end with_values([1.1, :not_a_number]) do it_should_raise_an_exception end end end
Version data entries
5 entries across 5 versions & 1 rubygems