Sha256: d62ac1673deb05ecf38f6bec4e8561f375945abbaeab048704d58c0456e953a2

Contents?: true

Size: 524 Bytes

Versions: 7

Compression:

Stored size: 524 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :tblLayout, name: "table_layout"

  for_attribute(:type) do
    with_value(:autofit) do
      it_should_assign_successfully
      it_should_output "<w:tblLayout w:type=\"autofit\"/>"
    end

    with_value(:fixed) do
      it_should_assign_successfully
      it_should_output "<w:tblLayout w:type=\"fixed\"/>"
    end

    with_value(:nope) do
      it_should_raise_an_exception
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

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