Sha256: 72ae099be8047c8d075de14a5e1065084f99853f96c8b70346947369039ea9b7
Contents?: true
Size: 623 Bytes
Versions: 1
Compression:
Stored size: 623 Bytes
Contents
require "spec_helper" describe OpenXml::Docx::Properties::SnapToGrid do include ValuePropertyTestMacros it_should_use tag: :snapToGrid, name: "snap_to_grid", value: true with_value(:on) do it_should_work it_should_output "<w:snapToGrid w:val=\"on\"/>" end with_value(:off) do it_should_work it_should_output "<w:snapToGrid w:val=\"off\"/>" end with_value(true) do it_should_work it_should_output "<w:snapToGrid/>" end with_value(false) do it_should_work it_should_output "<w:snapToGrid w:val=\"false\"/>" end with_value(nil) do it_should_not_work end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openxml-docx-0.10.6 | spec/properties/snap_to_grid_spec.rb |