Sha256: 64119e9f12566d7881e5dc9143f1c225832604dc2e7f1ca9a06b3aa4fcada3ed

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :autoRedefine, name: "style_auto_redefinition", value: true

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

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