Sha256: 5d0fd6546b33924ee5cefb832c0f65ae3d753dff4df05f9fe05d76243bf4e987

Contents?: true

Size: 525 Bytes

Versions: 12

Compression:

Stored size: 525 Bytes

Contents

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

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

  def test_write_c_chart
    expected = '<c:chart xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" r:id="rId1"/>'

    @drawing.__send__(:write_c_chart, 1)
    result = @drawing.instance_variable_get(:@writer).string

    assert_equal(expected, result)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
write_xlsx-1.09.4 test/drawing/test_write_c_chart.rb
write_xlsx-1.09.3 test/drawing/test_write_c_chart.rb
write_xlsx-1.09.2 test/drawing/test_write_c_chart.rb
write_xlsx-1.09.1 test/drawing/test_write_c_chart.rb
write_xlsx-1.09.0 test/drawing/test_write_c_chart.rb
write_xlsx-1.08.2 test/drawing/test_write_c_chart.rb
write_xlsx-1.08.1 test/drawing/test_write_c_chart.rb
write_xlsx-1.08.0 test/drawing/test_write_c_chart.rb
write_xlsx-1.07.0 test/drawing/test_write_c_chart.rb
write_xlsx-1.04.0 test/drawing/test_write_c_chart.rb
write_xlsx-1.02.0 test/drawing/test_write_c_chart.rb
write_xlsx-1.01.0 test/drawing/test_write_c_chart.rb