Sha256: 2b976417a8dd55a5f37300ba2e11fb0cc1915d7990871f9c6b384ece57353dad
Contents?: true
Size: 769 Bytes
Versions: 12
Compression:
Stored size: 769 Bytes
Contents
# -*- coding: utf-8 -*- require 'helper' require 'write_xlsx/drawing' class TestWriteCNvGraphicFramePr < Minitest::Test def setup @drawing = Writexlsx::Drawings.new end def test_write_c_nv_graphic_frame_pr_01 expected = '<xdr:cNvGraphicFramePr/>' @drawing.instance_variable_set(:@embedded, 1) @drawing.__send__(:write_c_nv_graphic_frame_pr) result = @drawing.instance_variable_get(:@writer).string assert_equal(expected, result) end def test_write_c_nv_graphic_frame_pr_02 expected = '<xdr:cNvGraphicFramePr><a:graphicFrameLocks noGrp="1"/></xdr:cNvGraphicFramePr>' @drawing.__send__(:write_c_nv_graphic_frame_pr) result = @drawing.instance_variable_get(:@writer).string assert_equal(expected, result) end end
Version data entries
12 entries across 12 versions & 1 rubygems