diff options
author | Eloy Espinaco <eloyesp@gmail.com> | 2022-11-28 14:09:00 -0300 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-12-20 13:15:02 +0900 |
commit | 012ef7d1d035f2c5cdb06bea777c22d72acc78c9 (patch) | |
tree | f3a95e1c221e5241e57601bcc7bf14cb21bef254 | |
parent | 3fd33590f624ff74d91c1d505f85653902764384 (diff) | |
download | ruby-012ef7d1d035f2c5cdb06bea777c22d72acc78c9.tar.gz |
[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
-rw-r--r-- | test/rubygems/test_gem_installer.rb | 2 | ||||
-rw-r--r-- | test/rubygems/test_require.rb | 2 |
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 |