Sha256: 4a1bb49b9ff7c325ee44724f8e2d2a2ab308e43f874f12fbe2f6298b8b58fc3b

Contents?: true

Size: 472 Bytes

Versions: 8

Compression:

Stored size: 472 Bytes

Contents

require "spec_helper"

describe OpenXml::Docx::Properties::WAfter do
  include PropertyTestMacros

  it_should_use tag: :wAfter, name: "w_after"

  for_attribute(:type) do
    values = %i(auto dxa nil pct)
    it_should_assign_and_output_xml values
    it_should_not_allow_invalid_value
    it_should_not_allow_integers
  end

  for_attribute(:width) do
    it_should_assign_and_output_xml 2
    it_should_not_allow_invalid_value
    it_should_not_allow_floats
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
openxml-docx-0.10.6 spec/properties/wafter_spec.rb
openxml-docx-0.10.5 spec/properties/wafter_spec.rb
openxml-docx-0.10.4 spec/properties/wafter_spec.rb
openxml-docx-0.10.3 spec/properties/wafter_spec.rb
openxml-docx-0.10.2 spec/properties/wafter_spec.rb
openxml-docx-0.10.1 spec/properties/wafter_spec.rb
openxml-docx-0.10.0 spec/properties/wafter_spec.rb
openxml-docx-0.9.0 spec/properties/wafter_spec.rb