Sha256: a262075768ff2e06ee77b40b6040b6707216a565c9c4784c7d6176ac56db67b7

Contents?: true

Size: 497 Bytes

Versions: 25

Compression:

Stored size: 497 Bytes

Contents

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

class TestWriteMarker < Test::Unit::TestCase
  def setup
    @chart = Writexlsx::Chart.new('Bar')
  end

  def test_write_marker
    expected = '<c:marker><c:symbol val="none"/></c:marker>'
    @chart.instance_variable_set(:@default_marker, Writexlsx::Chart::Marker.new(:type => 'none'))
    @chart.__send__('write_marker')
    result = @chart.instance_variable_get(:@writer).string
    assert_equal(expected, result)
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
write_xlsx-0.77.0 test/chart/test_write_marker.rb
write_xlsx-0.76.3 test/chart/test_write_marker.rb
write_xlsx-0.76.2 test/chart/test_write_marker.rb
write_xlsx-0.76.1 test/chart/test_write_marker.rb
write_xlsx-0.76.0 test/chart/test_write_marker.rb