rubygem-asciidoctor/asciidoctor-fix-include-uri.patch
2013-09-22 18:11:29 -06:00

20 lines
714 B
Diff

diff --git a/test/reader_test.rb b/test/reader_test.rb
index abc708a..6eb08ef 100644
--- a/test/reader_test.rb
+++ b/test/reader_test.rb
@@ -502,12 +502,12 @@ include::fixtures/no-such-file.ad[]
test 'include macro can retrieve data from uri' do
input = <<-EOS
....
-include::https://raw.github.com/asciidoctor/asciidoctor/master/LICENSE[]
+include::http://asciidoctor.org/humans.txt[]
....
EOS
output = render_embedded_string input, :safe => :safe, :attributes => {'allow-uri-read' => ''}
- assert_match(/MIT/, output)
+ assert_match(/Asciidoctor/, output)
end
test 'inaccessible uri referenced by include macro does not crash processor' do