Sha256: adcb62f281a88efb14b1357ab67a13c542f39bffad97b4f9bd5f2d25faa1cf39

Contents?: true

Size: 768 Bytes

Versions: 7

Compression:

Stored size: 768 Bytes

Contents

# -*- coding: utf-8 -*-
require 'helper'
require 'write_xlsx/drawing'

class TestWriteCNvGraphicFramePr < Minitest::Test
  def setup
    @drawing = Writexlsx::Drawing.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

7 entries across 7 versions & 1 rubygems

Version Path
write_xlsx-1.00.0 test/drawing/test_write_c_nv_graphic_frame_pr.rb
write_xlsx-0.99.0 test/drawing/test_write_c_nv_graphic_frame_pr.rb
write_xlsx-0.97.0 test/drawing/test_write_c_nv_graphic_frame_pr.rb
write_xlsx-0.90.0 test/drawing/test_write_c_nv_graphic_frame_pr.rb
write_xlsx-0.89.0 test/drawing/test_write_c_nv_graphic_frame_pr.rb
write_xlsx-0.88.0 test/drawing/test_write_c_nv_graphic_frame_pr.rb
write_xlsx-0.87.0 test/drawing/test_write_c_nv_graphic_frame_pr.rb