remove test for including content from a URI
This commit is contained in:
parent
6354126026
commit
c05c0100aa
@ -1,19 +1,22 @@
|
|||||||
diff --git a/test/reader_test.rb b/test/reader_test.rb
|
diff --git a/test/reader_test.rb b/test/reader_test.rb
|
||||||
index abc708a..6eb08ef 100644
|
index abc708a..5750437 100644
|
||||||
--- a/test/reader_test.rb
|
--- a/test/reader_test.rb
|
||||||
+++ b/test/reader_test.rb
|
+++ b/test/reader_test.rb
|
||||||
@@ -502,12 +502,12 @@ include::fixtures/no-such-file.ad[]
|
@@ -499,17 +499,6 @@ include::fixtures/no-such-file.ad[]
|
||||||
test 'include macro can retrieve data from uri' do
|
end
|
||||||
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
|
end
|
||||||
|
|
||||||
|
- test 'include macro can retrieve data from uri' do
|
||||||
|
- input = <<-EOS
|
||||||
|
-....
|
||||||
|
-include::https://raw.github.com/asciidoctor/asciidoctor/master/LICENSE[]
|
||||||
|
-....
|
||||||
|
- EOS
|
||||||
|
-
|
||||||
|
- output = render_embedded_string input, :safe => :safe, :attributes => {'allow-uri-read' => ''}
|
||||||
|
- assert_match(/MIT/, output)
|
||||||
|
- end
|
||||||
|
-
|
||||||
test 'inaccessible uri referenced by include macro does not crash processor' do
|
test 'inaccessible uri referenced by include macro does not crash processor' do
|
||||||
|
input = <<-EOS
|
||||||
|
....
|
@ -9,7 +9,9 @@ Group: Development/Languages
|
|||||||
License: MIT
|
License: MIT
|
||||||
URL: http://github.com/asciidoctor/asciidoctor
|
URL: http://github.com/asciidoctor/asciidoctor
|
||||||
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
Patch0: asciidoctor-fix-include-uri.patch
|
# Patch0: disable the test for including content from a URI
|
||||||
|
# since it does not work when the network is unavailable
|
||||||
|
Patch0: asciidoctor-remove-include-uri-test.patch
|
||||||
%if 0%{?rhel} > 6 || 0%{?fedora} > 18
|
%if 0%{?rhel} > 6 || 0%{?fedora} > 18
|
||||||
Requires: ruby(release)
|
Requires: ruby(release)
|
||||||
BuildRequires: ruby(release)
|
BuildRequires: ruby(release)
|
||||||
|
Loading…
Reference in New Issue
Block a user