summaryrefslogtreecommitdiffhomepage
path: root/test/drawing/tc_pic.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-02-02 20:26:15 +0900
committerRandy Morgan <[email protected]>2012-02-02 20:26:15 +0900
commit710f5eac4d8d7d017c42348180e9ae0a5e8fec3c (patch)
tree4cce6fc0e445705de8e3cad06152a7455c2942bf /test/drawing/tc_pic.rb
parentd4a00926a263329befc9526a930b274210a13abf (diff)
downloadcaxlsx-710f5eac4d8d7d017c42348180e9ae0a5e8fec3c.tar.gz
caxlsx-710f5eac4d8d7d017c42348180e9ae0a5e8fec3c.zip
Adding in hyperlinking for images as per issue #22
Diffstat (limited to 'test/drawing/tc_pic.rb')
-rw-r--r--test/drawing/tc_pic.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/drawing/tc_pic.rb b/test/drawing/tc_pic.rb
index 2d6c603d..9e4d62e6 100644
--- a/test/drawing/tc_pic.rb
+++ b/test/drawing/tc_pic.rb
@@ -17,6 +17,12 @@ class TestPic < Test::Unit::TestCase
assert_equal(@p.workbook.images.first, @image)
assert_equal(@image.image_src, @test_img)
end
+
+ def test_hyperlink
+ assert_equal(@image.hyperlink, nil)
+ @image.hyperlink = "http://axlsx.blogspot.com"
+ assert_equal(@image.hyperlink.href, "http://axlsx.blogspot.com")
+ end
def test_name
assert_raise(ArgumentError) { @image.name = 49 }