summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_resolver_installed_specification.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_resolver_installed_specification.rb')
-rw-r--r--test/rubygems/test_gem_resolver_installed_specification.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/rubygems/test_gem_resolver_installed_specification.rb b/test/rubygems/test_gem_resolver_installed_specification.rb
index b102f98d00..5b10273b13 100644
--- a/test/rubygems/test_gem_resolver_installed_specification.rb
+++ b/test/rubygems/test_gem_resolver_installed_specification.rb
@@ -1,5 +1,6 @@
# frozen_string_literal: true
-require 'rubygems/test_case'
+
+require_relative "helper"
class TestGemResolverInstalledSpecification < Gem::TestCase
def setup
@@ -9,17 +10,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 +34,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