Sha256: 7bde4fe5c96d2c26acb41805425f031dad9debf401433259496ac93637c45d07

Contents?: true

Size: 407 Bytes

Versions: 8

Compression:

Stored size: 407 Bytes

Contents

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

class TestWriteXdrExt < Minitest::Test
  def setup
    @drawing = Writexlsx::Drawings.new
  end

  def test_write_ext
    expected = '<xdr:ext cx="9308969" cy="6078325"/>'

    @drawing.__send__(:write_xdr_ext, 9308969, 6078325)
    result = @drawing.instance_variable_get(:@writer).string

    assert_equal(expected, result)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
write_xlsx-1.09.4 test/drawing/test_write_xdr_ext.rb
write_xlsx-1.09.3 test/drawing/test_write_xdr_ext.rb
write_xlsx-1.09.2 test/drawing/test_write_xdr_ext.rb
write_xlsx-1.09.1 test/drawing/test_write_xdr_ext.rb
write_xlsx-1.09.0 test/drawing/test_write_xdr_ext.rb
write_xlsx-1.08.2 test/drawing/test_write_xdr_ext.rb
write_xlsx-1.08.1 test/drawing/test_write_xdr_ext.rb
write_xlsx-1.08.0 test/drawing/test_write_xdr_ext.rb