Sha256: 0e7967586c7f4aaacd907b2eb5c1e120478cdccbab5358ad701301706f955bdc

Contents?: true

Size: 925 Bytes

Versions: 10

Compression:

Stored size: 925 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :rubyAlign, name: "alignment", value: :left

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

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

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

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

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

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

  with_value(:nope) do
    it_should_not_work
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

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