Sha256: be47fd96eeabf2cf7b04486d4e411d30e04056be9e99aca79235b94d7b4a1319

Contents?: true

Size: 587 Bytes

Versions: 6

Compression:

Stored size: 587 Bytes

Contents

require "spec_helper"

describe OpenXml::Docx::Elements::WordProcessingDrawingPositionH do
  include ElementTestMacros

  it_should_use tag: :positionH, name: "word_processing_drawing_position_h"

  for_attribute(:relative_from) do
    %i(character column insideMargin leftMargin margin outsideMargin page rightMargin).each do |good_value|
      with_value(good_value) do
        it_should_assign_successfully
        it_should_output "<wp:positionH relativeFrom=\"#{good_value}\"/>"
      end
    end

    with_value(:notRight) do
      it_should_raise_an_exception
    end
  end


end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
openxml-docx-0.10.6 spec/elements/word_processing_drawing_position_h_spec.rb
openxml-docx-0.10.5 spec/elements/word_processing_drawing_position_h_spec.rb
openxml-docx-0.10.4 spec/elements/word_processing_drawing_position_h_spec.rb
openxml-docx-0.10.3 spec/elements/word_processing_drawing_position_h_spec.rb
openxml-docx-0.10.2 spec/elements/word_processing_drawing_position_h_spec.rb
openxml-docx-0.10.1 spec/elements/word_processing_drawing_position_h_spec.rb