Sha256: 29665f3621e8ea21e0c172f3da54c6de00e07f031a147ff968500f31585f78db

Contents?: true

Size: 644 Bytes

Versions: 1

Compression:

Stored size: 644 Bytes

Contents

require 'tc_helper.rb'

class TestSeries < Test::Unit::TestCase

  def setup
    p = Axlsx::Package.new
    @ws = p.workbook.add_worksheet :name=>"hmmm"
    chart = @ws.add_chart Axlsx::Chart, :title => "fishery"
    @series = chart.add_series :title=>"bob"
  end

  def test_initialize
    assert_equal(@series.title.text, "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

1 entries across 1 versions & 1 rubygems

Version Path
caxlsx-3.2.0 test/drawing/tc_series.rb