Sha256: 6c944024e3e236b670f9c10e63b04f360d06d50283623d4d6d63a2db8d3334d7

Contents?: true

Size: 593 Bytes

Versions: 1

Compression:

Stored size: 593 Bytes

Contents

require "spec_helper"

describe Rocx::Properties::VerticalTextAlignment do
  include ValuePropertyTestMacros

  it_should_use tag: :vAlign, name: "vertical_text_alignment", value: :both

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

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

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

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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rocx-0.7.0 spec/properties/vertical_text_alignment_spec.rb