summaryrefslogtreecommitdiff
path: root/test/rdoc/test_rdoc_cross_reference.rb
diff options
context:
space:
mode:
authorUlysse Buonomo <[email protected]>2022-02-10 03:31:06 +0100
committerNobuyoshi Nakada <[email protected]>2022-02-12 15:06:06 +0900
commit5348a34504a67597e3a3ed98a3020dfd762241ad (patch)
tree7f9f69344798fa039d3f382974f92d26f3369aa3 /test/rdoc/test_rdoc_cross_reference.rb
parent08137c5dd99354225874abc95280188738030794 (diff)
[ruby/rdoc] Relative loading for easier development (https://github.com/ruby/rdoc/pull/821)
This patch makes sure we only load relative code. Hence when coding or testing rdoc, we'll be sure to always be using the correct code. Discussion started at https://github.com/ruby/rdoc/pull/817. Signed-off-by: Ulysse Buonomo <[email protected]> https://github.com/ruby/rdoc/commit/aa41bd48eb Co-authored-by: Nobuyoshi Nakada <[email protected]>
Diffstat (limited to 'test/rdoc/test_rdoc_cross_reference.rb')
-rw-r--r--test/rdoc/test_rdoc_cross_reference.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/rdoc/test_rdoc_cross_reference.rb b/test/rdoc/test_rdoc_cross_reference.rb
index 0417bf5d50..fee6fe59eb 100644
--- a/test/rdoc/test_rdoc_cross_reference.rb
+++ b/test/rdoc/test_rdoc_cross_reference.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true
-require File.expand_path '../xref_test_case', __FILE__
+require_relative 'xref_test_case'
class TestRDocCrossReference < XrefTestCase
OPERATOR_METHODS = %w'== === != =~ !~ < > <= >= <=> [] []= << >> -@ +@ ! - + * / % ** !@ ` | & ^ ~'
@@ -215,4 +215,3 @@ class TestRDocCrossReference < XrefTestCase
end
end
-