1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Make portable for standalone test-unit gem.

* It can invoke test-unit with envutil.rb
  * refute_match of test-unit couldn't handle String instance.
This commit is contained in:
Hiroshi SHIBATA 2019-08-19 18:37:22 +09:00
parent 9b330200f8
commit 209ea85b54
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,6 @@
# frozen_string_literal: false
require 'test/unit'
require 'envutil'
require 'uri'
module URI

View file

@ -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