mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-11-22 00:05:57 -05:00
bump coverage by testing more edge cases
mime type detector using file, no idnx
This commit is contained in:
parent
d856ae81e0
commit
dd84195db6
17
standalone_tests/no_punycode_test.rb
Normal file
17
standalone_tests/no_punycode_test.rb
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user