diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-12-16 13:37:28 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-12-20 13:15:02 +0900 |
commit | 9d10b8393e6692d076d79d3b80c6eefb40a65b44 (patch) | |
tree | f64bddc05b0031e9b48aadc3bd7bc950bea7bd81 /test/rubygems | |
parent | 012ef7d1d035f2c5cdb06bea777c22d72acc78c9 (diff) |
[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>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6966
Diffstat (limited to 'test/rubygems')
-rw-r--r-- | test/rubygems/test_require.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb index 9c3cd46115..fba7f0c8be 100644 --- a/test/rubygems/test_require.rb +++ b/test/rubygems/test_require.rb @@ -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 |