mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
[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:
parent
012ef7d1d0
commit
9d10b8393e
Notes:
git
2022-12-20 04:15:35 +00:00
1 changed files with 3 additions and 3 deletions
|
@ -691,13 +691,13 @@ class TestGemRequire < Gem::TestCase
|
|||
|
||||
spec.files += ["extconf.rb", "depend", "#{name}.c"]
|
||||
|
||||
so = File.join(spec.extension_dir, "#{name}.#{RbConfig::CONFIG["DLEXT"]}")
|
||||
assert_path_not_exist so
|
||||
extension_file = File.join(spec.extension_dir, "#{name}.#{RbConfig::CONFIG["DLEXT"]}")
|
||||
assert_path_not_exist extension_file
|
||||
|
||||
path = Gem::Package.build spec
|
||||
installer = Gem::Installer.at path
|
||||
installer.install
|
||||
assert_path_exist so
|
||||
assert_path_exist extension_file
|
||||
|
||||
spec.gem_dir
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue