[rubygems/rubygems] Fix tests checking intermediate files

Some tests check that the shared objects are actually installed, but
checking an intermediate build file instead of the installed one.

https://github.com/rubygems/rubygems/commit/ad526073b0
This commit is contained in:
Eloy Espinaco 2022-11-28 14:09:00 -03:00 коммит произвёл Hiroshi SHIBATA
Родитель 3fd33590f6
Коммит 012ef7d1d0
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1559,7 +1559,7 @@ gem 'other', version
write_file File.join(@tempdir, file)
end
so = File.join(@spec.gem_dir, "#{@spec.name}.#{RbConfig::CONFIG["DLEXT"]}")
so = File.join(@spec.extension_dir, "#{@spec.name}.#{RbConfig::CONFIG["DLEXT"]}")
assert_path_not_exist so
use_ui @ui do
path = Gem::Package.build @spec

Просмотреть файл

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