Skip to content

Commit 0284301

Browse files
junarugaclaude
andcommitted
bundler: Fix rubygems test_dir.
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1f63f18 commit 0284301

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

spec/bundler/fetcher/gem_remote_fetcher_local_ssl_server_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
require_relative "../../../test/rubygems/local_ssl_server_utilities"
43
require "bundler/fetcher"
4+
require Spec::Path.rubygems_test_dir.join("local_ssl_server_utilities")
55

66
RSpec.describe "Bundler::Fetcher local SSL server", if: Gem::HAVE_OPENSSL do
77
include Gem::LocalSSLServerUtilities

spec/support/path.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ def spec_dir
7979
@spec_dir ||= source_root.join(ruby_core? ? "spec/bundler" : "../spec")
8080
end
8181

82+
def rubygems_test_dir
83+
@rubygems_test_dir ||= source_root.join(ruby_core? ? "test/rubygems" : "../test/rubygems")
84+
end
85+
8286
def man_dir
8387
@man_dir ||= lib_dir.join("bundler/man")
8488
end

0 commit comments

Comments
 (0)