Sha256: d641fe25ecd9a146c4a7810dbb0eb6b2ab96009a54a10a46451052cb288bf223

Contents?: true

Size: 602 Bytes

Versions: 10

Compression:

Stored size: 602 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :vAlign, name: "vertical_text_alignment", value: :both

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

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

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

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

end

Version data entries

10 entries across 10 versions & 1 rubygems

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