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_resolver_api_set.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_resolver_api_set.rb')
-rw-r--r-- | test/rubygems/test_gem_resolver_api_set.rb | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/test/rubygems/test_gem_resolver_api_set.rb b/test/rubygems/test_gem_resolver_api_set.rb index c3db25d7aa..5c13311b1b 100644 --- a/test/rubygems/test_gem_resolver_api_set.rb +++ b/test/rubygems/test_gem_resolver_api_set.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true -require_relative 'helper' +require_relative "helper" class TestGemResolverAPISet < Gem::TestCase def setup @@ -12,17 +12,17 @@ class TestGemResolverAPISet < Gem::TestCase def test_initialize set = @DR::APISet.new - assert_equal URI('https://index.rubygems.org/info/'), set.dep_uri - assert_equal URI('https://index.rubygems.org/'), set.uri - assert_equal Gem::Source.new(URI('https://index.rubygems.org')), set.source + assert_equal URI("https://index.rubygems.org/info/"), set.dep_uri + assert_equal URI("https://index.rubygems.org/"), set.uri + assert_equal Gem::Source.new(URI("https://index.rubygems.org")), set.source end def test_initialize_deeper_uri - set = @DR::APISet.new 'https://rubygemsserver.com/mygems/info' + set = @DR::APISet.new "https://rubygemsserver.com/mygems/info" - assert_equal URI('https://rubygemsserver.com/mygems/info'), set.dep_uri - assert_equal URI('https://rubygemsserver.com/'), set.uri - assert_equal Gem::Source.new(URI('https://rubygemsserver.com/')), set.source + assert_equal URI("https://rubygemsserver.com/mygems/info"), set.dep_uri + assert_equal URI("https://rubygemsserver.com/"), set.uri + assert_equal Gem::Source.new(URI("https://rubygemsserver.com/")), set.source end def test_initialize_uri @@ -36,9 +36,9 @@ class TestGemResolverAPISet < Gem::TestCase spec_fetcher data = [ - { :name => 'a', - :number => '1', - :platform => 'ruby', + { :name => "a", + :number => "1", + :platform => "ruby", :dependencies => [] }, ] @@ -46,7 +46,7 @@ class TestGemResolverAPISet < Gem::TestCase set = @DR::APISet.new @dep_uri - a_dep = @DR::DependencyRequest.new dep('a'), nil + a_dep = @DR::DependencyRequest.new dep("a"), nil expected = [ @DR::APISpecification.new(set, data.first), @@ -59,13 +59,13 @@ class TestGemResolverAPISet < Gem::TestCase spec_fetcher data = [ - { :name => 'a', - :number => '1', - :platform => 'ruby', + { :name => "a", + :number => "1", + :platform => "ruby", :dependencies => [] }, - { :name => 'a', - :number => '2.a', - :platform => 'ruby', + { :name => "a", + :number => "2.a", + :platform => "ruby", :dependencies => [] }, ] @@ -74,7 +74,7 @@ class TestGemResolverAPISet < Gem::TestCase set = @DR::APISet.new @dep_uri set.prerelease = true - a_dep = @DR::DependencyRequest.new dep('a'), nil + a_dep = @DR::DependencyRequest.new dep("a"), nil expected = [ @DR::APISpecification.new(set, data.first), @@ -88,9 +88,9 @@ class TestGemResolverAPISet < Gem::TestCase spec_fetcher data = [ - { :name => 'a', - :number => '1', - :platform => 'ruby', + { :name => "a", + :number => "1", + :platform => "ruby", :dependencies => [] }, ] @@ -98,7 +98,7 @@ class TestGemResolverAPISet < Gem::TestCase set = @DR::APISet.new @dep_uri - a_dep = @DR::DependencyRequest.new dep('a'), nil + a_dep = @DR::DependencyRequest.new dep("a"), nil set.prefetch [a_dep] @@ -115,7 +115,7 @@ class TestGemResolverAPISet < Gem::TestCase set = @DR::APISet.new @dep_uri set.remote = false - a_dep = @DR::DependencyRequest.new dep('a'), nil + a_dep = @DR::DependencyRequest.new dep("a"), nil assert_empty set.find_all(a_dep) end @@ -127,7 +127,7 @@ class TestGemResolverAPISet < Gem::TestCase set = @DR::APISet.new @dep_uri - a_dep = @DR::DependencyRequest.new dep('a'), nil + a_dep = @DR::DependencyRequest.new dep("a"), nil assert_empty set.find_all(a_dep) @@ -144,8 +144,8 @@ class TestGemResolverAPISet < Gem::TestCase set = @DR::APISet.new @dep_uri - a_dep = @DR::DependencyRequest.new dep('a'), nil - b_dep = @DR::DependencyRequest.new dep('b'), nil + a_dep = @DR::DependencyRequest.new dep("a"), nil + b_dep = @DR::DependencyRequest.new dep("b"), nil set.prefetch [a_dep, b_dep] @@ -160,8 +160,8 @@ class TestGemResolverAPISet < Gem::TestCase set = @DR::APISet.new @dep_uri - a_dep = @DR::DependencyRequest.new dep('a'), nil - b_dep = @DR::DependencyRequest.new dep('b'), nil + a_dep = @DR::DependencyRequest.new dep("a"), nil + b_dep = @DR::DependencyRequest.new dep("b"), nil set.prefetch [a_dep] @@ -179,8 +179,8 @@ class TestGemResolverAPISet < Gem::TestCase set = @DR::APISet.new @dep_uri - a_dep = @DR::DependencyRequest.new dep('a'), nil - b_dep = @DR::DependencyRequest.new dep('b'), nil + a_dep = @DR::DependencyRequest.new dep("a"), nil + b_dep = @DR::DependencyRequest.new dep("b"), nil set.prefetch [a_dep, b_dep] @@ -199,8 +199,8 @@ class TestGemResolverAPISet < Gem::TestCase set = @DR::APISet.new @dep_uri set.remote = false - a_dep = @DR::DependencyRequest.new dep('a'), nil - b_dep = @DR::DependencyRequest.new dep('b'), nil + a_dep = @DR::DependencyRequest.new dep("a"), nil + b_dep = @DR::DependencyRequest.new dep("b"), nil set.prefetch [a_dep, b_dep] |