Sha256: b570e3bb8fd4291b28c63a64c658dcbc4c31c61f97cecee826bc1ec9e8e3d538

Contents?: true

Size: 543 Bytes

Versions: 7

Compression:

Stored size: 543 Bytes

Contents

require 'test/unit'
require 'axlsx.rb'

class TestMarker < Test::Unit::TestCase
  def setup    
    p = Axlsx::Package.new
    @ws = p.workbook.add_worksheet
    @chart = @ws.add_chart Axlsx::Chart
    @frame = @chart.graphic_frame
  end

  def teardown
  end

  def test_initialization
    assert(@frame.anchor.is_a?(Axlsx::TwoCellAnchor))
    assert_equal(@frame.chart, @chart)
  end

  def test_rId
    assert_equal(@frame.rId, "rId1")
    chart = @ws.add_chart Axlsx::Chart
    assert_equal(chart.graphic_frame.rId, "rId2")    
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
axlsx-1.0.7 test/drawing/tc_marker.rb~
axlsx-1.0.6 test/drawing/tc_marker.rb~
axlsx-1.0.5 test/drawing/tc_marker.rb~
axlsx-1.0.4 test/drawing/tc_marker.rb~
axlsx-1.0.3 test/drawing/tc_marker.rb~
axlsx-1.0.1 test/drawing/tc_marker.rb~
axlsx-1.0.0 test/drawing/tc_marker.rb~