summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2025-04-03 16:06:29 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-04-04 08:54:47 +0900
commit710bf4a47246c973b597f6d948dc7279babe93f4 (patch)
tree3c2c5e94364e95c2a53dc6e96e047f169ac92861
parentf8c0225971f93fdbb546bf4f921619357446135f (diff)
[rubygems/rubygems] Rubyinstaller2 fixed this
https://github.com/rubygems/rubygems/commit/08b3c48f41
-rw-r--r--spec/bundler/install/gems/standalone_spec.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/bundler/install/gems/standalone_spec.rb b/spec/bundler/install/gems/standalone_spec.rb
index abd77d33de..30bcccc6f0 100644
--- a/spec/bundler/install/gems/standalone_spec.rb
+++ b/spec/bundler/install/gems/standalone_spec.rb
@@ -173,14 +173,6 @@ RSpec.shared_examples "bundle install --standalone" do
bundle "config set --local path #{bundled_app("bundle")}"
- # Make sure rubyinstaller2 does not activate the etc gem in its
- # `operating_system.rb` file, but completely disable that since it's not
- # really needed here
- if Gem.win_platform?
- FileUtils.mkdir_p bundled_app("rubygems/defaults")
- FileUtils.touch bundled_app("rubygems/defaults/operating_system.rb")
- end
-
bundle :install, standalone: true, dir: cwd, env: { "BUNDLER_GEM_DEFAULT_DIR" => system_gem_path.to_s }, load_path: bundled_app
load_path_lines = bundled_app("bundle/bundler/setup.rb").read.split("\n").select {|line| line.start_with?("$:.unshift") }
@@ -212,14 +204,6 @@ RSpec.shared_examples "bundle install --standalone" do
bundle "lock", dir: cwd
- # Make sure rubyinstaller2 does not activate the etc gem in its
- # `operating_system.rb` file, but completely disable that since it's not
- # really needed here
- if Gem.win_platform?
- FileUtils.mkdir_p bundled_app("rubygems/defaults")
- FileUtils.touch bundled_app("rubygems/defaults/operating_system.rb")
- end
-
bundle :install, standalone: true, dir: cwd, env: { "BUNDLER_GEM_DEFAULT_DIR" => system_gem_path.to_s }, load_path: bundled_app
end