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:
parent
9b330200f8
commit
209ea85b54
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
# frozen_string_literal: false
|
||||
require 'test/unit'
|
||||
require 'envutil'
|
||||
require 'uri'
|
||||
|
||||
module URI
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue