# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx/shape' require 'write_xlsx/drawing' class DrawingShape02 < Minitest::Test def test_drawing_shape_02 shape = Writexlsx::Shape.new # Set shape properties via []= method shape.id = 1000 shape.name = 'Connector 1' # Set bulk shape properties via set_properties method shape.set_properties(:type => 'straightConnector1', :connect => 1) @obj = Writexlsx::Drawing.new @obj.embedded = 1 @obj.add_drawing_object( 3, 4, 8, 209550, 95250, 12, 22, 209660, 96260, 10000, 20000, 95250, 190500, 'Connector 1', shape ) @obj.assemble_xml_file result = got_to_array(@obj.xml_str) expected = expected_to_array(< 4 209550 8 95250 12 209660 22 96260 EOS ) assert_equal(expected, result) end end