diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-05-24 09:26:24 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-24 09:26:24 +0200 |
| commit | c1f922b3de788c1bb4e9b0dcf18f930897027446 (patch) | |
| tree | c3d66b5fd6d28d9f6c03a7e7a6366d4910759bce /test | |
| parent | 7650a5a86b46f4cc0954c134b448c96313c6abf3 (diff) | |
| parent | 088d388e6d4dda42d9278e6da96ac3183ff09dcd (diff) | |
| download | caxlsx-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.rb | 4 |
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 |
