mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
Manually merged from https://github.com/rubygems/rubygems/pull/2636
Enable Style/EmptyLinesAroundClassBody rubocop cop.
This commit is contained in:
parent
f56fc720ee
commit
31a6eaabc1
274 changed files with 672 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue