Sha256: a41809c34b84c89f7b303a7a968e0e9bb67f8633594a3bb459e15560dcb59e8a

Contents?: true

Size: 469 Bytes

Versions: 8

Compression:

Stored size: 469 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :tblW, name: "table_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_floats
    it_should_not_allow_invalid_value
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

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