diff options
Diffstat (limited to 'test/rubygems/test_gem_resolver_specification.rb')
-rw-r--r-- | test/rubygems/test_gem_resolver_specification.rb | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/test/rubygems/test_gem_resolver_specification.rb b/test/rubygems/test_gem_resolver_specification.rb index 9f28c1c0cf..e2bbce0c0c 100644 --- a/test/rubygems/test_gem_resolver_specification.rb +++ b/test/rubygems/test_gem_resolver_specification.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true -require_relative 'helper' + +require_relative "helper" class TestGemResolverSpecification < Gem::TestCase class TestSpec < Gem::Resolver::Specification @@ -16,31 +17,31 @@ class TestGemResolverSpecification < Gem::TestCase def test_install gemhome = "#{@gemhome}2" spec_fetcher do |fetcher| - fetcher.gem 'a', 1 + fetcher.gem "a", 1 end - a = util_spec 'a', 1 + a = util_spec "a", 1 a_spec = TestSpec.new a a_spec.source = Gem::Source.new @gem_repo - a_spec.install :install_dir => gemhome + a_spec.install install_dir: gemhome - assert_path_exist File.join gemhome, 'gems', a.full_name + assert_path_exist File.join gemhome, "gems", a.full_name - expected = File.join gemhome, 'specifications', a.spec_name + expected = File.join gemhome, "specifications", a.spec_name assert_equal expected, a_spec.spec.loaded_from end def test_installable_platform_eh - a = util_spec 'a', 1 + a = util_spec "a", 1 a_spec = TestSpec.new a assert a_spec.installable_platform? - b = util_spec 'a', 1 do |s| + b = util_spec "a", 1 do |s| s.platform = Gem::Platform.new %w[cpu other_platform 1] end @@ -50,7 +51,7 @@ class TestGemResolverSpecification < Gem::TestCase end def test_source - a = util_spec 'a', 1 + a = util_spec "a", 1 source = Gem::Source.new @gem_repo |