summaryrefslogtreecommitdiffhomepage
path: root/test/drawing/tc_graphic_frame.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_graphic_frame.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_graphic_frame.rb')
-rw-r--r--test/drawing/tc_graphic_frame.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/drawing/tc_graphic_frame.rb b/test/drawing/tc_graphic_frame.rb
index 30017d2b..fe0b901d 100644
--- a/test/drawing/tc_graphic_frame.rb
+++ b/test/drawing/tc_graphic_frame.rb
@@ -1,8 +1,7 @@
-require 'test/unit'
-require 'axlsx.rb'
+require 'tc_helper.rb'
class TestGraphicFrame < Test::Unit::TestCase
- def setup
+ def setup
p = Axlsx::Package.new
@ws = p.workbook.add_worksheet
@chart = @ws.add_chart Axlsx::Chart
@@ -20,7 +19,7 @@ class TestGraphicFrame < Test::Unit::TestCase
def test_rId
assert_equal(@frame.rId, "rId1")
chart = @ws.add_chart Axlsx::Chart
- assert_equal(chart.graphic_frame.rId, "rId2")
+ assert_equal(chart.graphic_frame.rId, "rId2")
end
end