Sha256: f30ab0fe4eb9c037044e64a6655f878b20d7eff8df2af1d4bd358149e0b94bb4

Contents?: true

Size: 609 Bytes

Versions: 1

Compression:

Stored size: 609 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :wordWrap, name: "word_wrap", value: true

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

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

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

  with_value(false) do
    it_should_work
    it_should_output "<w:wordWrap 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/word_wrap_spec.rb