[rubygems/rubygems] Use better name for variable

The installed file not always have the `.so` extension.

6f6681bcb9

Co-authored-by: Eloy Espinaco <eloyesp@gmail.com>
This commit is contained in:
David Rodríguez 2022-12-16 13:37:28 +01:00 committed by Hiroshi SHIBATA
parent 012ef7d1d0
commit 9d10b8393e
Notes: git 2022-12-20 04:15:35 +00:00

View file

@ -691,13 +691,13 @@ class TestGemRequire < Gem::TestCase
spec.files += ["extconf.rb", "depend", "#{name}.c"] spec.files += ["extconf.rb", "depend", "#{name}.c"]
so = File.join(spec.extension_dir, "#{name}.#{RbConfig::CONFIG["DLEXT"]}") extension_file = File.join(spec.extension_dir, "#{name}.#{RbConfig::CONFIG["DLEXT"]}")
assert_path_not_exist so assert_path_not_exist extension_file
path = Gem::Package.build spec path = Gem::Package.build spec
installer = Gem::Installer.at path installer = Gem::Installer.at path
installer.install installer.install
assert_path_exist so assert_path_exist extension_file
spec.gem_dir spec.gem_dir
end end