summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2024-11-18 15:00:51 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-11-18 15:48:20 +0900
commit7407aa51eaaac99bdedda3ddfcf71a37a8feaa50 (patch)
tree93d07fa311698346e423144491efa18ae6c45487
parent498c960a121f395e0b67ed62ab2f18ab841f658f (diff)
Don't use Spec::Path.base_system_gem_path
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12110
-rw-r--r--spec/bundler/bundled_gems_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/bundled_gems_spec.rb b/spec/bundler/bundled_gems_spec.rb
index 679cb114c6..67a6cbe18c 100644
--- a/spec/bundler/bundled_gems_spec.rb
+++ b/spec/bundler/bundled_gems_spec.rb
@@ -224,7 +224,7 @@ RSpec.describe "bundled_gems.rb" do
end
it "Show warning with zeitwerk" do
- libpath = Dir[Spec::Path.base_system_gem_path.join("gems/{zeitwerk}-*/lib")].map(&:to_s).first
+ libpath = Dir[File.expand_path(File.join(__dir__, "..", "..", ".bundle", "gems/{zeitwerk}-*/lib"))].map(&:to_s).first
code = <<-RUBY
$LOAD_PATH.unshift("#{libpath}")
require "zeitwerk"