summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"