diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2023-04-30 22:30:07 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2023-05-01 00:50:50 -0600 |
| commit | 2ddb9fc0506b6fe7eb07f3c12dd246aaccae4e9f (patch) | |
| tree | 62ccdc20df60b9696fb9a217d96e6ca21e910083 /test/reader_test.rb | |
| parent | db5dd8fd2f2e59030c2daac8690a100f22e523b2 (diff) | |
backport fix for #3929 treat uri:classloader: as absolute path prefix when running on JRuby
Diffstat (limited to 'test/reader_test.rb')
| -rw-r--r-- | test/reader_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/reader_test.rb b/test/reader_test.rb index cf4eaa57..3c78bed5 100644 --- a/test/reader_test.rb +++ b/test/reader_test.rb @@ -678,6 +678,15 @@ class ReaderTest < Minitest::Test assert_match(/<h1>人<\/h1>/, output) end + test 'should include content from a file on the classloader', if: jruby? do + require fixture_path 'assets.jar' + input = 'include::uri:classloader:/includes-in-jar/include-file.adoc[]' + doc = document_from_string input, safe: :unsafe, standalone: false, base_dir: DIRNAME + output = doc.convert + assert_match(/included from a file/, output) + assert doc.catalog[:includes]['uri:classloader:/includes-in-jar/include-file'] + end + test 'should not track include in catalog for non-AsciiDoc include files' do input = <<~'EOS' ---- |
