Sha256: a5a8f080b2c25a5c7db10a461cc482df1de24cf5ded61be42b40c715545a2471

Contents?: true

Size: 457 Bytes

Versions: 1

Compression:

Stored size: 457 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :contextualSpacing, name: "contextual_spacing", value: true

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

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