Sha256: 01c4e138a4daa59a1fb164a1e9edb83e9cd58106c022f6faeca4e79990fa6d10

Contents?: true

Size: 1.17 KB

Versions: 10

Compression:

Stored size: 1.17 KB

Contents

require "spec_helper"

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

  it_should_use tag: :jc, name: "alignment", value: :end

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

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

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

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

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

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

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

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

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

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

end

Version data entries

10 entries across 10 versions & 1 rubygems

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