Sha256: 2e182ae7bd5889bf46216bf608b0952581c88c156a75bf00c266b3405fef06b9
Contents?: true
Size: 525 Bytes
Versions: 17
Compression:
Stored size: 525 Bytes
Contents
require 'tc_helper.rb' class TestGraphicFrame < 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
17 entries across 17 versions & 1 rubygems