Skip to content

Commit 7407aa5

Browse files
committed
Don't use Spec::Path.base_system_gem_path
1 parent 498c960 commit 7407aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/bundler/bundled_gems_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def my
224224
end
225225

226226
it "Show warning with zeitwerk" do
227-
libpath = Dir[Spec::Path.base_system_gem_path.join("gems/{zeitwerk}-*/lib")].map(&:to_s).first
227+
libpath = Dir[File.expand_path(File.join(__dir__, "..", "..", ".bundle", "gems/{zeitwerk}-*/lib"))].map(&:to_s).first
228228
code = <<-RUBY
229229
$LOAD_PATH.unshift("#{libpath}")
230230
require "zeitwerk"

0 commit comments

Comments
 (0)