Sha256: f348dfc9bf24abfa5813ed06631c755f968557c311c4a7ebd966f24fc11e6760
Contents?: true
Size: 648 Bytes
Versions: 4
Compression:
Stored size: 648 Bytes
Contents
require 'test/unit' require 'axlsx.rb' class TestSeries < Test::Unit::TestCase def setup p = Axlsx::Package.new @ws = p.workbook.add_worksheet :name=>"hmmm" chart = @ws.drawing.add_chart Axlsx::Chart, :title => "fishery" @series = chart.add_series :title=>"bob" end def test_initialize assert_equal(@series.title, "bob", "series title has been applied") assert_equal(@series.order, @series.index, "order is index by default") assert_equal(@series.index, @series.chart.series.index(@series), "index is applied") end def test_order @series.order = 2 assert_equal(@series.order, 2) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
axlsx-1.0.4 | test/drawing/tc_series.rb |
axlsx-1.0.3 | test/drawing/tc_series.rb |
axlsx-1.0.1 | test/drawing/tc_series.rb |
axlsx-1.0.0 | test/drawing/tc_series.rb |