diff options
author | nagachika <nagachika@ruby-lang.org> | 2020-07-23 14:02:05 +0900 |
---|---|---|
committer | nagachika <nagachika@ruby-lang.org> | 2020-07-23 14:02:05 +0900 |
commit | 4f714939efde6d6b3b74c09e1e151e6ce6818b90 (patch) | |
tree | 2309e9bbc15519f62f8b70cf2a0e7a7983c0e274 /test/uri | |
parent | 9da6470d7b3aa136b4b92469c8bbc522beb1ac31 (diff) | |
download | ruby-4f714939efde6d6b3b74c09e1e151e6ce6818b90.tar.gz |
merge revision(s) e04418bb16cd99b4a4402e7457d3bdc967284f98: [Backport #16830]
[ruby/uri] Check if DN exists
https://bugs.ruby-lang.org/issues/16830
https://github.com/ruby/uri/commit/b4bf8c1217
Diffstat (limited to 'test/uri')
-rw-r--r-- | test/uri/test_ldap.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/uri/test_ldap.rb b/test/uri/test_ldap.rb index adad4454b5..64845e487a 100644 --- a/test/uri/test_ldap.rb +++ b/test/uri/test_ldap.rb @@ -95,6 +95,10 @@ class TestLDAP < Test::Unit::TestCase u.select(:scheme, :host, :not_exist, :port) end end + + def test_parse_invalid_uri + assert_raise(URI::InvalidURIError) {URI.parse("ldap:https://example.com")} + end end |