Sha256: 64f5a33f5718877929dff3e00b87306aa6b9548d603fdcfb652d8759c91134a3

Contents?: true

Size: 477 Bytes

Versions: 8

Compression:

Stored size: 477 Bytes

Contents

require "spec_helper"

describe OpenXml::Docx::Properties::TableCellWidth do
  include PropertyTestMacros

  it_should_use tag: :tcW, name: "table_cell_width"

  for_attribute(:type) do
    values = %i(dxa pct)
    it_should_assign_and_output_xml values
    it_should_not_allow_invalid_value
    it_should_not_allow_integers
  end

  for_attribute(:width) do
    it_should_assign_and_output_xml 2
    it_should_not_allow_invalid_value
    it_should_not_allow_floats
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

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