Skip to content

Commit aff2925

Browse files
committed
Use @pwd instead of __FILE__ for test dir
1 parent 008a792 commit aff2925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_rdoc_generator_json_index.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_generate
9696
assert_file 'js/navigation.js'
9797
assert_file 'js/search_index.js'
9898

99-
srcdir = File.expand_path("../../lib/rdoc", __FILE__)
99+
srcdir = File.expand_path('lib/rdoc', @pwd)
100100
if !File.directory? srcdir
101101
# for Ruby core repository
102102
srcdir = File.expand_path("../../../lib/rdoc", __FILE__)

0 commit comments

Comments
 (0)