From 710f5eac4d8d7d017c42348180e9ae0a5e8fec3c Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Thu, 2 Feb 2012 20:26:15 +0900 Subject: Adding in hyperlinking for images as per issue #22 --- test/drawing/tc_pic.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/drawing/tc_pic.rb') 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 } -- cgit v1.2.3