Sha256: a0795aa986ecbc7c7e7f60cbce554d30e9f6d30b390a13addebe3cc2852add23

Contents?: true

Size: 422 Bytes

Versions: 8

Compression:

Stored size: 422 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :gridSpan, name: "grid_span", value: 22

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

  with_value(-20) do
    it_should_not_work
  end

  with_value(23.1) do
    it_should_not_work
  end

  with_value(:big) 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_span_spec.rb
openxml-docx-0.10.5 spec/properties/grid_span_spec.rb
openxml-docx-0.10.4 spec/properties/grid_span_spec.rb
openxml-docx-0.10.3 spec/properties/grid_span_spec.rb
openxml-docx-0.10.2 spec/properties/grid_span_spec.rb
openxml-docx-0.10.1 spec/properties/grid_span_spec.rb
openxml-docx-0.10.0 spec/properties/grid_span_spec.rb
openxml-docx-0.9.0 spec/properties/grid_span_spec.rb