aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/test_utilities.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-24 19:51:43 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-03-30 12:42:10 +0900
commitba9dcdab3669f11b2e265712ceb43227c366fc3b (patch)
treee6aa19535d1b3388c9303497e1dc649e9e804ed8 /lib/rubygems/test_utilities.rb
parentf987302cf4a59944e5f01572d8ac36bbdbbc97cc (diff)
downloadruby-ba9dcdab3669f11b2e265712ceb43227c366fc3b.tar.gz
[rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems
So it matches the style used by bundler. https://github.com/rubygems/rubygems/commit/ab0580fd65
Diffstat (limited to 'lib/rubygems/test_utilities.rb')
-rw-r--r--lib/rubygems/test_utilities.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/test_utilities.rb b/lib/rubygems/test_utilities.rb
index 69ff05370e..6ae3c0e986 100644
--- a/lib/rubygems/test_utilities.rb
+++ b/lib/rubygems/test_utilities.rb
@@ -49,7 +49,7 @@ class Gem::FakeFetcher
path = path.to_s
@paths << path
- raise ArgumentError, 'need full URI' unless path =~ %r'^https?://'
+ raise ArgumentError, 'need full URI' unless path =~ %r{^https?://}
unless @data.key? path
raise Gem::RemoteFetcher::FetchError.new("no data for #{path}", path)
@@ -121,7 +121,7 @@ class Gem::FakeFetcher
path = path.to_s
@paths << path
- raise ArgumentError, 'need full URI' unless path =~ %r'^http://'
+ raise ArgumentError, 'need full URI' unless path =~ %r{^http://}
unless @data.key? path
raise Gem::RemoteFetcher::FetchError.new("no data for #{path}", path)