Sha256: eb2b4eb13242c4bccd13a2350568e900eb51c7c7db3f7a8fe8a8001060d4eafd

Contents?: true

Size: 868 Bytes

Versions: 5

Compression:

Stored size: 868 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :textDirection, name: "text_direction", value: :lr

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

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

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

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

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

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

  with_value(:left_to_right) do
    it_should_not_work
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
openxml-docx-0.10.1 spec/properties/text_direction_spec.rb
openxml-docx-0.10.0 spec/properties/text_direction_spec.rb
openxml-docx-0.9.0 spec/properties/text_direction_spec.rb
openxml-docx-0.8.0 spec/properties/text_direction_spec.rb
openxml-docx-0.8.0.beta1 spec/properties/text_direction_spec.rb