diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-02-19 15:10:29 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-05-12 17:24:43 +0900 |
commit | 183174475c9cd51148f72668605390912339bcef (patch) | |
tree | 5dec1e15ea0255f8a16b3f4adbbcf73145f6caac /test/rubygems/test_remote_fetch_error.rb | |
parent | 3c9633acfc5be293d27829c5a1f24a5efa2a5169 (diff) | |
download | ruby-183174475c9cd51148f72668605390912339bcef.tar.gz |
[rubygems/rubygems] Use Regexp with refute_match
https://github.com/rubygems/rubygems/commit/51fdbe53bc
Diffstat (limited to 'test/rubygems/test_remote_fetch_error.rb')
-rw-r--r-- | test/rubygems/test_remote_fetch_error.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/test_remote_fetch_error.rb b/test/rubygems/test_remote_fetch_error.rb index 29aaaa8adb..6602f8205b 100644 --- a/test/rubygems/test_remote_fetch_error.rb +++ b/test/rubygems/test_remote_fetch_error.rb @@ -4,7 +4,7 @@ require 'rubygems/test_case' class TestRemoteFetchError < Gem::TestCase def test_password_redacted error = Gem::RemoteFetcher::FetchError.new('There was an error fetching', 'https://user:secret@gemsource.org') - refute_match 'secret', error.to_s + refute_match %r|secret|, error.to_s end def test_invalid_url |