Sha256: 13a31397b81483e5003798e0afa201d389cd4eff930132043e492d4f89c12a5b

Contents?: true

Size: 520 Bytes

Versions: 1

Compression:

Stored size: 520 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(:relativeFrom) do
    allowed = %i(character column insideMargin leftMargin margin outsideMargin page rightMargin)
    with_values(allowed) do
      it_should_assign_successfully
      it_should_output_regular_xml
    end

    with_value(:notRight) do
      it_should_raise_an_exception
    end
  end


end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openxml-docx-0.10.0 spec/elements/word_processing_drawing_position_h_spec.rb