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_installed_specification.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_installed_specification.rb')
-rw-r--r-- | test/rubygems/test_gem_resolver_installed_specification.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/rubygems/test_gem_resolver_installed_specification.rb b/test/rubygems/test_gem_resolver_installed_specification.rb index 0e5ea02fb9..156a88144d 100644 --- a/test/rubygems/test_gem_resolver_installed_specification.rb +++ b/test/rubygems/test_gem_resolver_installed_specification.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true -require_relative 'helper' +require_relative "helper" class TestGemResolverInstalledSpecification < Gem::TestCase def setup @@ -9,17 +9,17 @@ class TestGemResolverInstalledSpecification < Gem::TestCase end def test_initialize - source_spec = util_spec 'a' + source_spec = util_spec "a" spec = Gem::Resolver::InstalledSpecification.new @set, source_spec - assert_equal 'a', spec.name + assert_equal "a", spec.name assert_equal Gem::Version.new(2), spec.version assert_equal Gem::Platform::RUBY, spec.platform end def test_install - a = util_spec 'a' + a = util_spec "a" spec = Gem::Resolver::InstalledSpecification.new @set, a @@ -33,7 +33,7 @@ class TestGemResolverInstalledSpecification < Gem::TestCase end def test_installable_platform_eh - b, b_gem = util_gem 'a', 1 do |s| + b, b_gem = util_gem "a", 1 do |s| s.platform = Gem::Platform.new %w[cpu other_platform 1] end |