Sha256: 915f1ef62095d465375fd8e75c405afaaf9ef76d401c1ba15562dbfcb644efe1

Contents?: true

Size: 459 Bytes

Versions: 1

Compression:

Stored size: 459 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :evenAndOddHeaders, name: "even_and_odd_headers", value: true

  with_value(true) do
    it_should_work
    it_should_output "<w:evenAndOddHeaders/>"
  end

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

  with_value(nil) do
    it_should_not_work
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openxml-docx-0.10.6 spec/properties/even_and_odd_headers_spec.rb