summaryrefslogtreecommitdiffhomepage
path: root/test/drawing/tc_pie_series.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-03-23 23:52:34 +0900
committerRandy Morgan <[email protected]>2012-03-23 23:52:34 +0900
commitad7119b5927584e4fc735ce72ea69322c3e9acac (patch)
treeb9ac11d22433f133bb1644b8c26bdd4a0886c555 /test/drawing/tc_pie_series.rb
parentcd6fb747bbf2915f92f1fb0169e7f54d87aa1915 (diff)
downloadcaxlsx-ad7119b5927584e4fc735ce72ea69322c3e9acac.tar.gz
caxlsx-ad7119b5927584e4fc735ce72ea69322c3e9acac.zip
move requires out of specs and into helper that prepends lib directory for requires
Diffstat (limited to 'test/drawing/tc_pie_series.rb')
-rw-r--r--test/drawing/tc_pie_series.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/drawing/tc_pie_series.rb b/test/drawing/tc_pie_series.rb
index 53799c72..66c8da81 100644
--- a/test/drawing/tc_pie_series.rb
+++ b/test/drawing/tc_pie_series.rb
@@ -1,5 +1,4 @@
-require 'test/unit'
-require 'axlsx.rb'
+require 'tc_helper.rb'
class TestPieSeries < Test::Unit::TestCase
@@ -9,12 +8,12 @@ class TestPieSeries < Test::Unit::TestCase
chart = @ws.drawing.add_chart Axlsx::Pie3DChart, :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.explosion, nil, "series shape has been applied")
+ assert_equal(@series.labels, ["zero", "one","two"], "labels option applied")
+ assert_equal(@series.explosion, nil, "series shape has been applied")
end
def test_data