Sha256: 6ddd07df86f969dbced126ab3e2832896142608875794536935759072bb6d6ee

Contents?: true

Size: 402 Bytes

Versions: 8

Compression:

Stored size: 402 Bytes

Contents

require "spec_helper"

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

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

  %i(both bottom center top).each do |good_value|
    with_value(good_value) do
      it_should_work
      it_should_output "<w:vAlign w:val=\"#{good_value}\"/>"
    end
  end

  with_value(:invalid) do
    it_should_not_work
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

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