зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Use better name for variable
The installed file not always have the `.so` extension. https://github.com/rubygems/rubygems/commit/6f6681bcb9 Co-authored-by: Eloy Espinaco <eloyesp@gmail.com>
This commit is contained in:
Родитель
012ef7d1d0
Коммит
9d10b8393e
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче