Sha256: df2434dc076bcc53cdd9de0b10ace8b1bf46078c6c858b4cef33fc98a33ad2bd
Contents?: true
Size: 549 Bytes
Versions: 18
Compression:
Stored size: 549 Bytes
Contents
require 'test/unit' require 'axlsx.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
18 entries across 18 versions & 1 rubygems