Sha256: 32140fd2e295a72a92bd7bcea88ede893fa7577d0f1840a324075d99cd737bf0

Contents?: true

Size: 480 Bytes

Versions: 8

Compression:

Stored size: 480 Bytes

Contents

require "spec_helper"

describe OpenXml::Docx::Properties::GridAfter do
  include ValuePropertyTestMacros

  it_should_use tag: :gridAfter, name: "grid_after", value: 1

  with_value(400) do
    it_should_work
    it_should_output "<w:gridAfter w:val=\"400\"/>"
  end

  with_value(-230) do
    it_should_work
    it_should_output "<w:gridAfter w:val=\"-230\"/>"
  end

  with_value(4.2) do
    it_should_not_work
  end

  with_value(:twelve) do
    it_should_not_work
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
openxml-docx-0.10.6 spec/properties/grid_after_spec.rb
openxml-docx-0.10.5 spec/properties/grid_after_spec.rb
openxml-docx-0.10.4 spec/properties/grid_after_spec.rb
openxml-docx-0.10.3 spec/properties/grid_after_spec.rb
openxml-docx-0.10.2 spec/properties/grid_after_spec.rb
openxml-docx-0.10.1 spec/properties/grid_after_spec.rb
openxml-docx-0.10.0 spec/properties/grid_after_spec.rb
openxml-docx-0.9.0 spec/properties/grid_after_spec.rb