Sha256: caa67fa22a7276974f164fd842ba598902e1a22d269efaf64cf17eeef53b6967

Contents?: true

Size: 734 Bytes

Versions: 10

Compression:

Stored size: 734 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :textAlignment, name: "text_alignment", value: :auto

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

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

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

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

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

end

Version data entries

10 entries across 10 versions & 1 rubygems

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