Sha256: 768a9e7eb3898980efa77ac6b573085ecb023d27e94ffd988912a6356b893aab

Contents?: true

Size: 485 Bytes

Versions: 8

Compression:

Stored size: 485 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :gridBefore, name: "grid_before", value: 1

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

  with_value(-230) do
    it_should_work
    it_should_output "<w:gridBefore 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_before_spec.rb
openxml-docx-0.10.5 spec/properties/grid_before_spec.rb
openxml-docx-0.10.4 spec/properties/grid_before_spec.rb
openxml-docx-0.10.3 spec/properties/grid_before_spec.rb
openxml-docx-0.10.2 spec/properties/grid_before_spec.rb
openxml-docx-0.10.1 spec/properties/grid_before_spec.rb
openxml-docx-0.10.0 spec/properties/grid_before_spec.rb
openxml-docx-0.9.0 spec/properties/grid_before_spec.rb