bump coverage by testing more edge cases

mime type detector using file, no idnx
This commit is contained in:
HoneyryderChuck 2023-09-26 17:36:18 +01:00
parent d856ae81e0
commit dd84195db6

View File

@ -0,0 +1,17 @@
# frozen_string_literal: true
$LOAD_PATH.delete_if { |path| path.include?("/idnx") }
require "test_helper"
require "support/http_helpers"
require "support/minitest_extensions"
class NoPunycodeTest < Minitest::Test
include HTTPHelpers
def test_do_not_punycode
assert_raises(URI::InvalidComponentError) do
HTTPX.get("http://bücher.ch")
end
end
end