Sha256: 25b5774e8605c7db80d3cc5168c3dbb5f200b5792081050d636503e5a7e2f1c1
Contents?: true
Size: 1013 Bytes
Versions: 3
Compression:
Stored size: 1013 Bytes
Contents
require "spec_helper" describe Rocx::Properties::Numbering do include PropertyTestMacros it_should_use tag: :numPr, name: "numbering" for_attribute(:level) do with_value(24) do it_should_assign_successfully it_should_output "<w:numPr>\n <w:ilvl w:val=\"24\"/>\n </w:numPr>" end with_value(-24) do it_should_raise_an_exception end with_value(:big) do it_should_raise_an_exception end end for_attribute(:id) do with_value(24) do it_should_assign_successfully it_should_output "<w:numPr>\n <w:numId w:val=\"24\"/>\n </w:numPr>" end with_value(-24) do it_should_raise_an_exception end with_value(:big) do it_should_raise_an_exception end end with_no_attributes_set do it_should_output "", assign: false end with_these_attributes_set(level: 4, id: 0) do it_should_output "<w:numPr>\n <w:ilvl w:val=\"4\"/>\n <w:numId w:val=\"0\"/>\n </w:numPr>", assign: false end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rocx-0.7.0 | spec/properties/numbering_spec.rb |
rocx-0.6.0 | spec/properties/numbering_spec.rb |
rocx-0.5.8 | spec/properties/numbering_spec.rb |