diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-09-23 21:02:56 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-09-23 21:02:56 +0900 |
commit | 31a6eaabc165d8a222e176f2c809d90622d88ec2 (patch) | |
tree | b5333db2c13888ede5062ccd8ecca649ea261b4c /test/rubygems/test_remote_fetch_error.rb | |
parent | f56fc720ee8cd4b79824a1c3843058b662a302bd (diff) | |
download | ruby-31a6eaabc165d8a222e176f2c809d90622d88ec2.tar.gz |
Manually merged from https://github.com/rubygems/rubygems/pull/2636
Enable Style/EmptyLinesAroundClassBody rubocop cop.
Diffstat (limited to 'test/rubygems/test_remote_fetch_error.rb')
-rw-r--r-- | test/rubygems/test_remote_fetch_error.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/rubygems/test_remote_fetch_error.rb b/test/rubygems/test_remote_fetch_error.rb index 29aaaa8adb..766086756e 100644 --- a/test/rubygems/test_remote_fetch_error.rb +++ b/test/rubygems/test_remote_fetch_error.rb @@ -2,6 +2,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 @@ -16,4 +17,5 @@ class TestRemoteFetchError < Gem::TestCase error = Gem::RemoteFetcher::FetchError.new('There was an error fetching', 'https://gemsource.org') assert_equal error.to_s, 'There was an error fetching (https://gemsource.org)' end + end |