Enable Style/EmptyLinesAroundClassBody rubocop cop.
This commit is contained in:
Hiroshi SHIBATA 2020-09-23 21:02:56 +09:00
parent f56fc720ee
commit 31a6eaabc1
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
274 changed files with 672 additions and 0 deletions

View file

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