summaryrefslogtreecommitdiff
path: root/test/rubygems
diff options
context:
space:
mode:
authorEloy Espinaco <eloyesp@gmail.com>2022-11-28 14:09:00 -0300
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-12-20 13:15:02 +0900
commit012ef7d1d035f2c5cdb06bea777c22d72acc78c9 (patch)
treef3a95e1c221e5241e57601bcc7bf14cb21bef254 /test/rubygems
parent3fd33590f624ff74d91c1d505f85653902764384 (diff)
[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
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6966
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/test_gem_installer.rb2
-rw-r--r--test/rubygems/test_require.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_installer.rb b/test/rubygems/test_gem_installer.rb
index f9209350fb..5ba64074f9 100644
--- a/test/rubygems/test_gem_installer.rb
+++ b/test/rubygems/test_gem_installer.rb
@@ -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
diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb
index dff945f625..9c3cd46115 100644
--- a/test/rubygems/test_require.rb
+++ b/test/rubygems/test_require.rb
@@ -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