summaryrefslogtreecommitdiffhomepage
path: root/test/drawing/tc_pic.rb
diff options
context:
space:
mode:
authorrandym <[email protected]>2018-02-08 00:14:12 +0900
committerrandym <[email protected]>2018-02-08 00:14:12 +0900
commit747ff93269c518db21c9869b61b1d1470395b502 (patch)
tree16c8d9c416a02fc7ca8bd91e058ea61c72dfc7ce /test/drawing/tc_pic.rb
parent3f34514ecf53fb4a3401b5336833bbeb439efe2a (diff)
downloadcaxlsx-747ff93269c518db21c9869b61b1d1470395b502.tar.gz
caxlsx-747ff93269c518db21c9869b61b1d1470395b502.zip
chore(coverage) increase coverage and cleanup
Diffstat (limited to 'test/drawing/tc_pic.rb')
-rw-r--r--test/drawing/tc_pic.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/drawing/tc_pic.rb b/test/drawing/tc_pic.rb
index 2c58fcfd..67e6c416 100644
--- a/test/drawing/tc_pic.rb
+++ b/test/drawing/tc_pic.rb
@@ -9,10 +9,7 @@ class TestPic < Test::Unit::TestCase
@test_img_png = File.dirname(__FILE__) + "/../../examples/image1.png"
@test_img_gif = File.dirname(__FILE__) + "/../../examples/image1.gif"
@test_img_fake = File.dirname(__FILE__) + "/../../examples/image1_fake.jpg"
- @image = ws.add_image :image_src => @test_img, :hyperlink => 'https://github.com/randym', :tooltip => "What's up doc?"
- end
-
- def teardown
+ @image = ws.add_image :image_src => @test_img, :hyperlink => 'https://github.com/randym', :tooltip => "What's up doc?", :opacity => 5
end
def test_initialization
@@ -40,6 +37,7 @@ class TestPic < Test::Unit::TestCase
assert_equal(200, @image.width)
end
+
def test_hyperlink
assert_equal(@image.hyperlink.href, "https://github.com/randym")
@image.hyperlink = "http://axlsx.blogspot.com"
@@ -102,5 +100,4 @@ class TestPic < Test::Unit::TestCase
doc = Nokogiri::XML(@image.anchor.drawing.to_xml_string)
assert_equal r_id, doc.xpath("//a:blip").first["r:embed"]
end
-
end