summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorZsolt Kozaroczy <[email protected]>2023-05-24 09:26:24 +0200
committerGitHub <[email protected]>2023-05-24 09:26:24 +0200
commitc1f922b3de788c1bb4e9b0dcf18f930897027446 (patch)
treec3d66b5fd6d28d9f6c03a7e7a6366d4910759bce /test
parent7650a5a86b46f4cc0954c134b448c96313c6abf3 (diff)
parent088d388e6d4dda42d9278e6da96ac3183ff09dcd (diff)
downloadcaxlsx-c1f922b3de788c1bb4e9b0dcf18f930897027446.tar.gz
caxlsx-c1f922b3de788c1bb4e9b0dcf18f930897027446.zip
Merge pull request #252 from tagliala/security/enable-security-cops
Enable Security cops
Diffstat (limited to 'test')
-rw-r--r--test/util/tc_mime_type_utils.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/util/tc_mime_type_utils.rb b/test/util/tc_mime_type_utils.rb
index 568aa61d..fc7d9d79 100644
--- a/test/util/tc_mime_type_utils.rb
+++ b/test/util/tc_mime_type_utils.rb
@@ -17,4 +17,8 @@ class TestMimeTypeUtils < Test::Unit::TestCase
assert_equal('image/jpeg', Axlsx::MimeTypeUtils::get_mime_type(@test_img))
assert_equal('image/png', Axlsx::MimeTypeUtils::get_mime_type_from_uri(@test_img_url))
end
+
+ def test_escape_uri
+ assert_raise(URI::InvalidURIError) { Axlsx::MimeTypeUtils::get_mime_type_from_uri('| ls') }
+ end
end