aboutsummaryrefslogtreecommitdiffstats
path: root/test/uri/test_generic.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/uri/test_generic.rb')
-rw-r--r--test/uri/test_generic.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/uri/test_generic.rb b/test/uri/test_generic.rb
index c850eb02d1..90f779c88c 100644
--- a/test/uri/test_generic.rb
+++ b/test/uri/test_generic.rb
@@ -1,5 +1,6 @@
# frozen_string_literal: false
require 'test/unit'
+require 'envutil'
require 'uri'
class URI::TestGeneric < Test::Unit::TestCase
@@ -765,7 +766,7 @@ class URI::TestGeneric < Test::Unit::TestCase
e = assert_raise(URI::InvalidComponentError) do
uri.password = password
end
- refute_match password, e.message
+ refute_match Regexp.new(password), e.message
end
def test_set_scheme