Sha256: 95263cf56dafd5358abb879b1eb8f945c52ecf62b2a97e0dc7556eb4dcd820aa

Contents?: true

Size: 703 Bytes

Versions: 10

Compression:

Stored size: 703 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :type, name: "type", value: :oddPage

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

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

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

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

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

end

Version data entries

10 entries across 10 versions & 1 rubygems

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