summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2013-08-17 15:45:43 +0900
committerRandy Morgan <[email protected]>2013-08-17 15:45:43 +0900
commit5ce1b3b655084deaf01d10cba301b8db068e949c (patch)
tree19a296fcb047f99de71b1a216bac0e6c2adcca32
parentee13b1cb4506232fa7ec5edc9fcc4dc796b40431 (diff)
downloadcaxlsx-5ce1b3b655084deaf01d10cba301b8db068e949c.tar.gz
caxlsx-5ce1b3b655084deaf01d10cba301b8db068e949c.zip
add uppercase file for image file checking tests
-rw-r--r--examples/IMAGE1UP.JPEGbin0 -> 82255 bytes
-rw-r--r--test/drawing/tc_pic.rb3
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/IMAGE1UP.JPEG b/examples/IMAGE1UP.JPEG
new file mode 100644
index 00000000..ce1d0c56
--- /dev/null
+++ b/examples/IMAGE1UP.JPEG
Binary files differ
diff --git a/test/drawing/tc_pic.rb b/test/drawing/tc_pic.rb
index af8f6f57..bb17c64c 100644
--- a/test/drawing/tc_pic.rb
+++ b/test/drawing/tc_pic.rb
@@ -6,6 +6,7 @@ class TestPic < Test::Unit::TestCase
@p = Axlsx::Package.new
ws = @p.workbook.add_worksheet
@test_img = File.dirname(__FILE__) + "/../../examples/image1.jpeg"
+ @test_img_up = File.dirname(__FILE__) + "/../../examples/IMAGE1UP.JPEG"
@image = ws.add_image :image_src => @test_img, :hyperlink => 'https://github.com/randym', :tooltip => "What's up doc?"
end
@@ -77,7 +78,7 @@ class TestPic < Test::Unit::TestCase
end
def test_image_src_downcase
- assert_nothing_raised { @image.image_src = @test_img.upcase }
+ assert_nothing_raised { @image.image_src = @test_img_up.upcase }
end
def test_descr