Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ env:
global:
NOBENCHMARK=1
script: rake
matrix:
allow_failures:
- rvm: jruby-9.1.16.0
8 changes: 7 additions & 1 deletion test/test_rdoc_generator_json_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@ def test_generate
assert_file 'js/navigation.js'
assert_file 'js/search_index.js'

orig_file = Pathname(File.join @pwd, 'lib/rdoc/generator/template/json_index/js/navigation.js')
srcdir = File.expand_path("../../lib/rdoc", __FILE__)
if !File.directory? srcdir
# for Ruby core repository
srcdir = File.expand_path("../../../lib/rdoc", __FILE__)
end

orig_file = Pathname(File.join srcdir, 'generator/template/json_index/js/navigation.js')
generated_file = Pathname(File.join @tmpdir, 'js/navigation.js')

# This is dirty hack on JRuby for MiniTest 4
Expand Down