From 9bc7bf33a7e935f9c0fdb7437a67df2f871a0e05 Mon Sep 17 00:00:00 2001 From: marc Date: Fri, 3 Jul 2015 17:12:08 +0200 Subject: Remove lowercase extension test It is no longer needed because now detection is though mime type --- test/drawing/tc_pic.rb | 9 --------- 1 file changed, 9 deletions(-) (limited to 'test') diff --git a/test/drawing/tc_pic.rb b/test/drawing/tc_pic.rb index 066d9962..2c58fcfd 100644 --- a/test/drawing/tc_pic.rb +++ b/test/drawing/tc_pic.rb @@ -9,7 +9,6 @@ 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" - @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 @@ -81,14 +80,6 @@ class TestPic < Test::Unit::TestCase assert_equal(@image.image_src, @test_img_jpg) end - def test_image_src_downcase - assert_nothing_raised { @image.image_src = @test_img_up } - ct = @p.send(:content_types).detect do |t| - t.respond_to?(:extension) && t.extension.downcase == @image.extname.downcase - end - assert_equal("image/jpeg", ct.content_type) - end - def test_descr assert_raise(ArgumentError) { @image.descr = 49 } assert_nothing_raised { @image.descr = "test" } -- cgit v1.2.3