Sha256: 5ab6c687429b73bbaac5d578604ece0cc86d560ac196fe9147ee0991920f2a8f

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :locked, name: "style_lock", value: true

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

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