diff options
author | Vít Ondruch <vondruch@redhat.com> | 2023-10-20 18:01:14 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-11-08 09:04:28 +0900 |
commit | 42cf1307c3e110f5d01b74f16cbdd0f83e183abe (patch) | |
tree | c63c85a431739518f25f0fefa36c11d8c677d910 /test/rubygems/test_gem_installer.rb | |
parent | acd428c823ea70faa12edf09af303b4f843d3691 (diff) |
[rubygems/rubygems] Make the user installation less exceptional
The main purpose is to put handling of user installation into the same
place as e.g. handling the --build-root option handling. There is no
reason why the --build-root option should not prefix also paths used for
user installation.
Please note that the `util_installer` in
`test_generate_plugins_with_user_install` enforced the `:install_dir`,
which is against what user install is about.
https://github.com/rubygems/rubygems/commit/0b10cb41aa
Diffstat (limited to 'test/rubygems/test_gem_installer.rb')
-rw-r--r-- | test/rubygems/test_gem_installer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_installer.rb b/test/rubygems/test_gem_installer.rb index adda63cf22..155e9f6ff4 100644 --- a/test/rubygems/test_gem_installer.rb +++ b/test/rubygems/test_gem_installer.rb @@ -821,7 +821,7 @@ gem 'other', version File.chmod(0o555, Gem.plugindir) system_path = File.join(Gem.plugindir, "a_plugin.rb") user_path = File.join(Gem.plugindir(Gem.user_dir), "a_plugin.rb") - installer = util_installer spec, Gem.dir, :user + installer = Gem::Installer.at spec.cache_file, :user_install => true, :force => true assert_equal spec, installer.install |