summaryrefslogtreecommitdiff
path: root/test/rubygems/test_remote_fetch_error.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_remote_fetch_error.rb')
-rw-r--r--test/rubygems/test_remote_fetch_error.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/rubygems/test_remote_fetch_error.rb b/test/rubygems/test_remote_fetch_error.rb
index 55c505d879..5d9028ede7 100644
--- a/test/rubygems/test_remote_fetch_error.rb
+++ b/test/rubygems/test_remote_fetch_error.rb
@@ -1,10 +1,11 @@
# frozen_string_literal: true
+
require_relative "helper"
-class TestRemoteFetchError < Gem::TestCase
+class TestGemRemoteFetchError < Gem::TestCase
def test_password_redacted
error = Gem::RemoteFetcher::FetchError.new("There was an error fetching", "https://user:secret@gemsource.org")
- refute_match %r{secret}, error.to_s
+ refute_match(/secret/, error.to_s)
end
def test_invalid_url