Skip to content

Commit af4b102

Browse files
hsbtclaude
andcommitted
[ruby/rubygems] Fix VCR cassette path recording to use git_root
used_cassettes.txt recorded paths relative to source_root (bundler/) but the Rakefile's check_unused_cassettes task globs relative to the repo root. Use git_root for consistent path resolution. ruby/rubygems@92ec2b3ed5 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dab9e40 commit af4b102

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • spec/bundler/support/artifice

spec/bundler/support/artifice/vcr.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def handle_request
2424
end
2525

2626
File.open(USED_CASSETTES_PATH, "a+") do |f|
27-
f.puts request_pair_paths.map {|path| Pathname.new(path).relative_path_from(Spec::Path.source_root).to_s }.join("\n")
27+
f.puts request_pair_paths.map {|path| Pathname.new(path).relative_path_from(Spec::Path.git_root).to_s }.join("\n")
2828
end
2929

3030
if recorded_response?

0 commit comments

Comments
 (0)