summaryrefslogtreecommitdiffhomepage
path: root/test/drawing/tc_bar_series.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/drawing/tc_bar_series.rb')
-rw-r--r--test/drawing/tc_bar_series.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/drawing/tc_bar_series.rb b/test/drawing/tc_bar_series.rb
index afd6004a..b07b42a4 100644
--- a/test/drawing/tc_bar_series.rb
+++ b/test/drawing/tc_bar_series.rb
@@ -1,5 +1,4 @@
-require 'test/unit'
-require 'axlsx.rb'
+require 'tc_helper.rb'
class TestBarSeries < Test::Unit::TestCase
@@ -9,12 +8,12 @@ class TestBarSeries < Test::Unit::TestCase
chart = @ws.drawing.add_chart Axlsx::Bar3DChart, :title => "fishery"
@series = chart.add_series :data=>[0,1,2], :labels=>["zero", "one", "two"], :title=>"bob"
end
-
+
def test_initialize
assert_equal(@series.title.text, "bob", "series title has been applied")
assert_equal(@series.data, [0,1,2], "data option applied")
- assert_equal(@series.labels, ["zero", "one","two"], "labels option applied")
- assert_equal(@series.shape, :box, "series shape has been applied")
+ assert_equal(@series.labels, ["zero", "one","two"], "labels option applied")
+ assert_equal(@series.shape, :box, "series shape has been applied")
end
def test_data