diff options
| author | Randy Morgan <[email protected]> | 2013-01-15 21:53:47 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2013-01-15 21:53:47 +0900 |
| commit | 40c85619885de848447479b99c08e5feaea89a90 (patch) | |
| tree | 61cebfceb3ac1d404e4893b376f9f3a5d72e3bd0 /test/drawing | |
| parent | e14682fb484cd72ba5f479cc1f7d46a7a9fd6007 (diff) | |
| download | caxlsx-40c85619885de848447479b99c08e5feaea89a90.tar.gz caxlsx-40c85619885de848447479b99c08e5feaea89a90.zip | |
Refactored relationship management for drawings
This should fix #160
Diffstat (limited to 'test/drawing')
| -rw-r--r-- | test/drawing/tc_graphic_frame.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/drawing/tc_graphic_frame.rb b/test/drawing/tc_graphic_frame.rb index fe0b901d..ce4b8214 100644 --- a/test/drawing/tc_graphic_frame.rb +++ b/test/drawing/tc_graphic_frame.rb @@ -22,4 +22,9 @@ class TestGraphicFrame < Test::Unit::TestCase assert_equal(chart.graphic_frame.rId, "rId2") end + def test_rId_with_image_and_chart + image = @ws.add_image :image_src => (File.dirname(__FILE__) + "/../../examples/image1.jpeg"), :start_at => [0,25], :width => 200, :height => 200 + assert_equal(2, image.id) + assert_equal(1, @chart.index+1) + end end |
