diff options
author | Takuya Noguchi <takninnovationresearch@gmail.com> | 2022-07-17 08:08:51 +0000 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-07-22 12:07:23 +0900 |
commit | d7ffd3fea402239b16833cc434404a7af82d44f3 (patch) | |
tree | 9794942135111c36e6b6bce69e070ca556b89028 /test/rubygems/test_gem_local_remote_options.rb | |
parent | 388c4e1076ac5a58d5008abc8e0a8d017698875a (diff) | |
download | ruby-d7ffd3fea402239b16833cc434404a7af82d44f3.tar.gz |
RubyGems: Enable Style/StringLiterals cop
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
Diffstat (limited to 'test/rubygems/test_gem_local_remote_options.rb')
-rw-r--r-- | test/rubygems/test_gem_local_remote_options.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/rubygems/test_gem_local_remote_options.rb b/test/rubygems/test_gem_local_remote_options.rb index 948d1e3981..0c662a3f50 100644 --- a/test/rubygems/test_gem_local_remote_options.rb +++ b/test/rubygems/test_gem_local_remote_options.rb @@ -1,13 +1,13 @@ # frozen_string_literal: true -require_relative 'helper' -require 'rubygems/local_remote_options' -require 'rubygems/command' +require_relative "helper" +require "rubygems/local_remote_options" +require "rubygems/command" class TestGemLocalRemoteOptions < Gem::TestCase def setup super - @cmd = Gem::Command.new 'dummy', 'dummy' + @cmd = Gem::Command.new "dummy", "dummy" @cmd.extend Gem::LocalRemoteOptions end @@ -75,10 +75,10 @@ class TestGemLocalRemoteOptions < Gem::TestCase def test_source_option @cmd.add_source_option - s1 = URI.parse 'http://more-gems.example.com/' - s2 = URI.parse 'http://even-more-gems.example.com/' - s3 = URI.parse 'http://other-gems.example.com/some_subdir' - s4 = URI.parse 'http://more-gems.example.com/' # Intentional duplicate + s1 = URI.parse "http://more-gems.example.com/" + s2 = URI.parse "http://even-more-gems.example.com/" + s3 = URI.parse "http://other-gems.example.com/some_subdir" + s4 = URI.parse "http://more-gems.example.com/" # Intentional duplicate original_sources = Gem.sources.dup @@ -96,7 +96,7 @@ class TestGemLocalRemoteOptions < Gem::TestCase original_sources = Gem.sources.dup - source = URI.parse 'http://more-gems.example.com/' + source = URI.parse "http://more-gems.example.com/" @cmd.handle_options %W[-s #{source}] original_sources << source @@ -121,7 +121,7 @@ class TestGemLocalRemoteOptions < Gem::TestCase def test_source_option_bad @cmd.add_source_option - s1 = 'htp://more-gems.example.com' + s1 = "htp://more-gems.example.com" assert_raise ArgumentError do @cmd.handle_options %W[--source #{s1}] |