We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 435b719 commit 1f810c4Copy full SHA for 1f810c4
test/test_rdoc_generator_json_index.rb
@@ -96,7 +96,13 @@ def test_generate
96
assert_file 'js/navigation.js'
97
assert_file 'js/search_index.js'
98
99
- orig_file = Pathname(File.join @pwd, 'lib/rdoc/generator/template/json_index/js/navigation.js')
+ srcdir = File.expand_path("../../lib/rdoc", __FILE__)
100
+ if !File.directory? srcdir
101
+ # for Ruby core repository
102
+ srcdir = File.expand_path("../../../lib/rdoc", __FILE__)
103
+ end
104
+
105
+ orig_file = Pathname(File.join srcdir, 'generator/template/json_index/js/navigation.js')
106
generated_file = Pathname(File.join @tmpdir, 'js/navigation.js')
107
108
# This is dirty hack on JRuby for MiniTest 4
0 commit comments