Sha256: 2b9aa861f7e7ae4da44f6786eab5c586182ed7a7836dd60f1d867821278442b7

Contents?: true

Size: 859 Bytes

Versions: 3

Compression:

Stored size: 859 Bytes

Contents

require "spec_helper"

describe Rocx::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

3 entries across 3 versions & 1 rubygems

Version Path
rocx-0.7.0 spec/properties/text_direction_spec.rb
rocx-0.6.0 spec/properties/text_direction_spec.rb
rocx-0.5.8 spec/properties/text_direction_spec.rb