Skip to content

Commit

Permalink
Add patches_test/rdoc.patch - don't use Ruby src dir
Browse files Browse the repository at this point in the history
  • Loading branch information
MSP-Greg committed Oct 16, 2024
1 parent 12b5acb commit 8a2ca08
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions patches_test/rdoc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/test/rdoc/test_rdoc_generator_json_index.rb b/test/rdoc/test_rdoc_generator_json_index.rb
index 62d1ccec95..e31567172a 100644
--- a/test/rdoc/test_rdoc_generator_json_index.rb
+++ b/test/rdoc/test_rdoc_generator_json_index.rb
@@ -95,7 +95,8 @@ def test_generate
assert_file 'js/navigation.js'
assert_file 'js/search_index.js'

- srcdir = File.expand_path('lib/rdoc', @pwd)
+ #srcdir = File.expand_path('lib/rdoc', @pwd)
+ srcdir = "#{RbConfig::TOPDIR}/lib/ruby/#{RbConfig::CONFIG['ruby_version']}/rdoc"
if !File.directory? srcdir
# for Ruby core repository
srcdir = File.expand_path("../../../lib/rdoc", __FILE__)

0 comments on commit 8a2ca08

Please sign in to comment.